重い足で踏み歩く
怒ったキャラ32%持ち上がっては、どしんと着いて24%つぶれるのをくり返す。
- 時間
- 1.3s
- くり返し
- する
- 速さの変化
- ease-in-out
- 動かすもの
- 位置・大きさ translate scale
CSS を見る
@keyframes onoma-dosudosu {
0% { transform: translate(0%, 0%) scale(1, 1); animation-timing-function: ease-out; }
25% { transform: translate(0%, -32%) scale(1, 1); animation-timing-function: cubic-bezier(.6,0,1,.6); }
42% { transform: translate(0%, 0%) scale(1.24, 0.76); animation-timing-function: ease-out; }
60% { transform: translate(0%, 0%) scale(1, 1); }
100% { transform: translate(0%, 0%) scale(1, 1); }
}
.onoma-dosudosu {
animation: onoma-dosudosu 1.3s ease-in-out infinite both;
transform-origin: 50% 100%;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-dosudosu { animation: none; }
}