水に重く落ちる
重い項目を入れる上220%から加速して落ち、着地で20%つぶれて止まる。
- 時間
- 0.8s
- くり返し
- しない
- 速さの変化
- cubic-bezier(.55,0,1,.45)
- 動かすもの
- 位置・大きさ translate scale
CSS を見る
@keyframes onoma-dobon {
0% { transform: translate(0%, -220%) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
62% { transform: translate(0%, 0%) scale(1.2, 0.8); animation-timing-function: ease-out; }
80% { transform: translate(0%, 0%) scale(0.96, 1.04); }
100% { transform: translate(0%, 0%) scale(1, 1); }
}
.onoma-dobon {
animation: onoma-dobon 0.8s cubic-bezier(.55,0,1,.45) both;
}
/* 動きを減らす設定の人には、現れるだけ */
@keyframes onoma-dobon-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.onoma-dobon { animation: onoma-dobon-fade 0.2s ease-out both; }
}