次々と生えてくる
項目が増えていく20%の高さで弾み、着くたびに0%つぶれるのをくり返す。
- 時間
- 1.2s
- くり返し
- する
- 速さの変化
- ease-in-out
- 動かすもの
- 位置・大きさ translate scale
CSS を見る
@keyframes onoma-nyokinyoki {
0% { transform: translate(0%, 0%) scale(1, 1); animation-timing-function: cubic-bezier(.3,.7,.5,1); }
50% { transform: translate(0%, -20%) scale(1, 1); animation-timing-function: cubic-bezier(.5,0,.7,.3); }
100% { transform: translate(0%, 0%) scale(1, 1); }
}
.onoma-nyokinyoki {
animation: onoma-nyokinyoki 1.2s ease-in-out infinite both;
transform-origin: 50% 100%;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-nyokinyoki { animation: none; }
}