花びらが散る
カードを消す左右に5回、幅30%・傾き最大20°で揺れながら、下へ220%落ちて消える。
- 時間
- 2s
- くり返し
- しない
- 速さの変化
- ease-in-out
- 動かすもの
- 位置・回転・透明度 translate rotate opacity
CSS を見る
@keyframes onoma-harahara {
0% { transform: translate(0%, 0%) rotate(0deg); opacity: 1; animation-timing-function: ease-in-out; }
20% { transform: translate(28%, 27.15%) rotate(18.67deg); opacity: 1; animation-timing-function: ease-in-out; }
40% { transform: translate(-26%, 66.85%) rotate(-17.33deg); opacity: 1; animation-timing-function: ease-in-out; }
60% { transform: translate(24%, 113.25%) rotate(16deg); opacity: 1; animation-timing-function: ease-in-out; }
80% { transform: translate(-22%, 164.6%) rotate(-14.67deg); opacity: 0.6; animation-timing-function: ease-in-out; }
100% { transform: translate(0%, 220%) rotate(6deg); opacity: 0; animation-timing-function: ease-in-out; }
}
.onoma-harahara {
animation: onoma-harahara 2s ease-in-out both;
}
/* 動きを減らす設定の人には、消えるだけ */
@keyframes onoma-harahara-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.onoma-harahara { animation: onoma-harahara-fade 0.2s ease-out both; }
}