重く垂れ下がる
タグを垂らす上の端を軸に25°から揺れて現れ、だんだん止まる。
- 時間
- 1.8s
- くり返し
- しない
- 速さの変化
- ease-in-out
- 動かすもの
- 回転・透明度 rotate opacity
CSS を見る
@keyframes onoma-darari {
0% { transform: rotate(-25deg); opacity: 0; }
10% { transform: rotate(-13.93deg); opacity: 1; }
35% { transform: rotate(13.75deg); opacity: 1; }
55% { transform: rotate(-7deg); opacity: 1; }
75% { transform: rotate(3deg); opacity: 1; }
90% { transform: rotate(-1deg); opacity: 1; }
100% { transform: rotate(0deg); opacity: 1; }
}
.onoma-darari {
animation: onoma-darari 1.8s ease-in-out both;
transform-origin: 50% 0%;
}
/* 動きを減らす設定の人には、現れるだけ */
@keyframes onoma-darari-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.onoma-darari { animation: onoma-darari-fade 0.2s ease-out both; }
}