小またで歩き回る
小さなキャラの移動8歩、10%ずつ跳ねながら80%進むのをくり返す。
- 時間
- 1.4s
- くり返し
- する
- 速さの変化
- linear
- 動かすもの
- 位置・透明度 translate opacity
CSS を見る
@keyframes onoma-chokochoko {
0% { transform: translate(-40%, 0%); opacity: 0; animation-timing-function: ease-out; }
6.25% { transform: translate(-35%, -10%); opacity: 1; animation-timing-function: ease-in; }
12.5% { transform: translate(-30%, 0%); opacity: 1; animation-timing-function: ease-out; }
18.75% { transform: translate(-25%, -10%); opacity: 1; animation-timing-function: ease-in; }
25% { transform: translate(-20%, 0%); opacity: 1; animation-timing-function: ease-out; }
31.25% { transform: translate(-15%, -10%); opacity: 1; animation-timing-function: ease-in; }
37.5% { transform: translate(-10%, 0%); opacity: 1; animation-timing-function: ease-out; }
43.75% { transform: translate(-5%, -10%); opacity: 1; animation-timing-function: ease-in; }
50% { transform: translate(0%, 0%); opacity: 1; animation-timing-function: ease-out; }
56.25% { transform: translate(5%, -10%); opacity: 1; animation-timing-function: ease-in; }
62.5% { transform: translate(10%, 0%); opacity: 1; animation-timing-function: ease-out; }
68.75% { transform: translate(15%, -10%); opacity: 1; animation-timing-function: ease-in; }
75% { transform: translate(20%, 0%); opacity: 1; animation-timing-function: ease-out; }
81.25% { transform: translate(25%, -10%); opacity: 1; animation-timing-function: ease-in; }
87.5% { transform: translate(30%, 0%); opacity: 1; animation-timing-function: ease-out; }
93.75% { transform: translate(35%, -10%); opacity: 1; animation-timing-function: ease-in; }
100% { transform: translate(40%, 0%); opacity: 0; }
}
.onoma-chokochoko {
animation: onoma-chokochoko 1.4s linear infinite both;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-chokochoko { animation: none; }
}