身軽に次々こなす
作業が進んでいる4歩、25%ずつ跳ねながら100%進むのをくり返す。
- 時間
- 1.2s
- くり返し
- する
- 速さの変化
- linear
- 動かすもの
- 位置・透明度 translate opacity
CSS を見る
@keyframes onoma-hyoihyoi {
0% { transform: translate(-50%, 0%); opacity: 0; animation-timing-function: ease-out; }
12.5% { transform: translate(-37.5%, -25%); 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%, -25%); 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%, -25%); 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%, -25%); opacity: 1; animation-timing-function: ease-in; }
100% { transform: translate(50%, 0%); opacity: 0; }
}
.onoma-hyoihyoi {
animation: onoma-hyoihyoi 1.2s linear infinite both;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-hyoihyoi { animation: none; }
}