浮かれてはずむ
うれしい知らせ4歩、24%ずつ跳ねながら100%進むのをくり返す。
- 時間
- 1.4s
- くり返し
- する
- 速さの変化
- linear
- 動かすもの
- 位置・透明度 translate opacity
CSS を見る
@keyframes onoma-runrun {
0% { transform: translate(-50%, 0%); opacity: 0; animation-timing-function: ease-out; }
12.5% { transform: translate(-37.5%, -24%); opacity: 1; animation-timing-function: ease-in; }
25% { transform: translate(-25%, 0%); opacity: 1; animation-timing-function: ease-out; }
37.5% { transform: translate(-12.5%, -24%); opacity: 1; animation-timing-function: ease-in; }
50% { transform: translate(0%, 0%); opacity: 1; animation-timing-function: ease-out; }
62.5% { transform: translate(12.5%, -24%); opacity: 1; animation-timing-function: ease-in; }
75% { transform: translate(25%, 0%); opacity: 1; animation-timing-function: ease-out; }
87.5% { transform: translate(37.5%, -24%); opacity: 1; animation-timing-function: ease-in; }
100% { transform: translate(50%, 0%); opacity: 0; }
}
.onoma-runrun {
animation: onoma-runrun 1.4s linear infinite both;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-runrun { animation: none; }
}