軽々と動く
さっと追加する上から60%の高さを落ち、着地で4%つぶれて、20%跳ねてから止まる。
- 時間
- 0.46s
- くり返し
- しない
- 速さの変化
- ease-in
- 動かすもの
- 位置・大きさ・透明度 translate scale opacity
CSS を見る
@keyframes onoma-hyoi {
0% { transform: translate(0%, -60%) scale(1, 1); opacity: 0; animation-timing-function: ease-in; }
8% { transform: translate(0%, -49.33%) scale(1.01, 0.99); opacity: 1; }
45% { transform: translate(0%, 0%) scale(1.04, 0.96); opacity: 1; animation-timing-function: ease-out; }
66% { transform: translate(0%, -20%) scale(0.99, 1.01); opacity: 1; animation-timing-function: ease-in; }
85% { transform: translate(0%, 0%) scale(1.01, 0.99); opacity: 1; }
100% { transform: translate(0%, 0%) scale(1, 1); opacity: 1; }
}
.onoma-hyoi {
animation: onoma-hyoi 0.46s ease-in both;
}
/* 動きを減らす設定の人には、現れるだけ */
@keyframes onoma-hyoi-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.onoma-hyoi { animation: onoma-hyoi-fade 0.2s ease-out both; }
}