ふらりと現れる
ふいの通知上の端を軸に30°から揺れて現れ、だんだん止まる。
- 時間
- 1.4s
- くり返し
- しない
- 速さの変化
- ease-in-out
- 動かすもの
- 回転・透明度 rotate opacity
CSS を見る
@keyframes onoma-burari {
0% { transform: rotate(-30deg); opacity: 0; }
10% { transform: rotate(-16.71deg); opacity: 1; }
35% { transform: rotate(16.5deg); opacity: 1; }
55% { transform: rotate(-8.4deg); opacity: 1; }
75% { transform: rotate(3.6deg); opacity: 1; }
90% { transform: rotate(-1.2deg); opacity: 1; }
100% { transform: rotate(0deg); opacity: 1; }
}
.onoma-burari {
animation: onoma-burari 1.4s ease-in-out both;
transform-origin: 50% 0%;
}
/* 動きを減らす設定の人には、現れるだけ */
@keyframes onoma-burari-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
.onoma-burari { animation: onoma-burari-fade 0.2s ease-out both; }
}