勢いよく回って現れる
新しい項目を出す1回転しながら、点から元の大きさへ現れる。
- 時間
- 0.9s
- くり返し
- しない
- 速さの変化
- cubic-bezier(.2,.8,.3,1)
- 動かすもの
- 回転・大きさ・透明度 rotate scale opacity
CSS を見る
@keyframes onoma-gurun {
0% { transform: rotate(-360deg) scale(0, 0); opacity: 0; }
30% { transform: rotate(-252deg) scale(0.3, 0.3); opacity: 1; }
100% { transform: rotate(0deg) scale(1, 1); opacity: 1; }
}
.onoma-gurun {
animation: onoma-gurun 0.9s cubic-bezier(.2,.8,.3,1) both;
}
/* 動きを減らす設定の人には、現れるだけ */
@keyframes onoma-gurun-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.onoma-gurun { animation: onoma-gurun-fade 0.2s ease-out both; }
}