舞って落ちる
カードを消す左右に4回、幅35%・傾き最大24°で揺れながら、下へ260%落ちて消える。
- 時間
- 1.2s
- くり返し
- しない
- 速さの変化
- ease-in-out
- 動かすもの
- 位置・回転・透明度 translate rotate opacity
CSS を見る
@keyframes onoma-hirari {
0% { transform: translate(0%, 0%) rotate(0deg); opacity: 1; animation-timing-function: ease-in-out; }
25% { transform: translate(32.2%, 42.88%) rotate(22.08deg); opacity: 1; animation-timing-function: ease-in-out; }
50% { transform: translate(-29.4%, 105.59%) rotate(-20.16deg); opacity: 1; animation-timing-function: ease-in-out; }
75% { transform: translate(26.6%, 178.88%) rotate(18.24deg); opacity: 0.6; animation-timing-function: ease-in-out; }
100% { transform: translate(0%, 260%) rotate(-7.2deg); opacity: 0; animation-timing-function: ease-in-out; }
}
.onoma-hirari {
animation: onoma-hirari 1.2s ease-in-out both;
}
/* 動きを減らす設定の人には、消えるだけ */
@keyframes onoma-hirari-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.onoma-hirari { animation: onoma-hirari-fade 0.2s ease-out both; }
}