涙がこぼれる
悲しい・感動した上から70%落ちて、着くとつぶれて消えるのをくり返す。
- 時間
- 1.2s
- くり返し
- する
- 速さの変化
- ease-in
- 動かすもの
- 位置・大きさ・透明度 translate scale opacity
CSS を見る
@keyframes onoma-poroporo {
0% { transform: translate(0%, -70%) scale(0.9, 1.1); opacity: 0; }
12% { transform: translate(0%, -58%) scale(0.9, 1.1); opacity: 1; }
70% { transform: translate(0%, 0%) scale(0.9, 1.1); opacity: 1; animation-timing-function: ease-out; }
80% { transform: translate(0%, 0%) scale(1.3, 0.6); opacity: 1; }
92% { transform: translate(0%, 0%) scale(1.4, 0.3); opacity: 0; }
100% { transform: translate(0%, 0%) scale(1.4, 0.3); opacity: 0; }
}
.onoma-poroporo {
animation: onoma-poroporo 1.2s ease-in infinite both;
transform-origin: 50% 100%;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-poroporo { animation: none; }
}崩れてこぼれる
項目を壊して消す少し震えてから、崩れるように140%落ちて消える。
- 時間
- 0.8s
- くり返し
- しない
- 速さの変化
- ease-in
- 動かすもの
- 位置・回転・透明度 translate rotate opacity
CSS を見る
@keyframes onoma-poroporo-2 {
0% { transform: translate(0%, 0%) rotate(0deg); opacity: 1; }
8% { transform: translate(-2%, 0%) rotate(0deg); opacity: 1; }
16% { transform: translate(2%, 0%) rotate(0deg); opacity: 1; }
24% { transform: translate(-1.5%, 0%) rotate(0deg); opacity: 1; }
32% { transform: translate(0%, 0%) rotate(0deg); opacity: 1; }
80% { transform: translate(0%, 98.82%) rotate(12.71deg); opacity: 1; }
100% { transform: translate(0%, 140%) rotate(18deg); opacity: 0; }
}
.onoma-poroporo-2 {
animation: onoma-poroporo-2 0.8s ease-in both;
}
/* 動きを減らす設定の人には、消えるだけ */
@keyframes onoma-poroporo-2-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.onoma-poroporo-2 { animation: onoma-poroporo-2-fade 0.2s ease-out both; }
}