揺れながら進む
ゆっくりした読み込み6歩、6%ずつ跳ねながら140%進むのをくり返す。
- 時間
- 2.4s
- くり返し
- する
- 速さの変化
- linear
- 動かすもの
- 位置・透明度 translate opacity
CSS を見る
@keyframes onoma-gatagoto {
0% { transform: translate(-70%, 0%); opacity: 0; animation-timing-function: ease-out; }
8.33% { transform: translate(-58.33%, -6%); opacity: 1; animation-timing-function: ease-in; }
16.67% { transform: translate(-46.67%, 0%); opacity: 1; animation-timing-function: ease-out; }
25% { transform: translate(-35%, -6%); opacity: 1; animation-timing-function: ease-in; }
33.33% { transform: translate(-23.33%, 0%); opacity: 1; animation-timing-function: ease-out; }
41.67% { transform: translate(-11.67%, -6%); opacity: 1; animation-timing-function: ease-in; }
50% { transform: translate(0%, 0%); opacity: 1; animation-timing-function: ease-out; }
58.33% { transform: translate(11.67%, -6%); opacity: 1; animation-timing-function: ease-in; }
66.67% { transform: translate(23.33%, 0%); opacity: 1; animation-timing-function: ease-out; }
75% { transform: translate(35%, -6%); opacity: 1; animation-timing-function: ease-in; }
83.33% { transform: translate(46.67%, 0%); opacity: 1; animation-timing-function: ease-out; }
91.67% { transform: translate(58.33%, -6%); opacity: 1; animation-timing-function: ease-in; }
100% { transform: translate(70%, 0%); opacity: 0; }
}
.onoma-gatagoto {
animation: onoma-gatagoto 2.4s linear infinite both;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-gatagoto { animation: none; }
}