鍵が重く回る
ロック・解除一瞬22°ひねって小さく縮み、かちっと元に戻る。
- 時間
- 0.6s
- くり返し
- しない
- 速さの変化
- ease-out
- 動かすもの
- 回転・大きさ rotate scale
CSS を見る
@keyframes onoma-gachari {
0% { transform: rotate(0deg) scale(1, 1); }
20% { transform: rotate(22deg) scale(0.94, 0.94); }
45% { transform: rotate(-6.6deg) scale(1.02, 1.02); }
70% { transform: rotate(2.2deg) scale(1, 1); }
100% { transform: rotate(0deg) scale(1, 1); }
}
.onoma-gachari {
animation: onoma-gachari 0.6s ease-out both;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-gachari { animation: none; }
}