しょげて沈む
がっかりの表現28%下へずしんと沈み込み、しばらくしてから戻る。
- 時間
- 1.6s
- くり返し
- しない
- 速さの変化
- ease-in-out
- 動かすもの
- 位置・大きさ translate scale
CSS を見る
@keyframes onoma-shuun {
0% { transform: translate(0%, 0%) scale(1, 1); animation-timing-function: ease-out; }
35% { transform: translate(0%, 28%) scale(1.04, 0.9); }
75% { transform: translate(0%, 28%) scale(1.04, 0.9); }
100% { transform: translate(0%, 0%) scale(1, 1); }
}
.onoma-shuun {
animation: onoma-shuun 1.6s ease-in-out both;
transform-origin: 50% 100%;
}
/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
.onoma-shuun { animation: none; }
}風を切って飛ぶ
送信した少し沈んでから、上へ300%飛んでいって消える。
- 時間
- 0.6s
- くり返し
- しない
- 速さの変化
- cubic-bezier(.6,0,.9,.4)
- 動かすもの
- 位置・大きさ・透明度 translate scale opacity
CSS を見る
@keyframes onoma-shuun-2 {
0% { transform: translate(0%, 0%) scale(1, 1); opacity: 1; animation-timing-function: ease-out; }
20% { transform: translate(0%, 8%) scale(1.08, 0.9); opacity: 1; }
100% { transform: translate(0%, -300%) scale(0.92, 1.12); opacity: 0; }
}
.onoma-shuun-2 {
animation: onoma-shuun-2 0.6s cubic-bezier(.6,0,.9,.4) both;
}
/* 動きを減らす設定の人には、消えるだけ */
@keyframes onoma-shuun-2-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.onoma-shuun-2 { animation: onoma-shuun-2-fade 0.2s ease-out both; }
}