OnomaUI

ほろほろ の動き

ほろほろ の動きは、2つに分かれます。

horohoro2種類公式

意味ごとの動き

やさしく崩れる

カードを崩して消す

少し震えてから、崩れるように120%落ちて消える。

時間
1.2s
くり返し
しない
速さの変化
ease-in
動かすもの
位置・回転・透明度 translate rotate opacity
CSS を見る
@keyframes onoma-horohoro {
  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%, 84.71%) rotate(7.06deg); opacity: 1; }
  100% { transform: translate(0%, 120%) rotate(10deg); opacity: 0; }
}

.onoma-horohoro {
  animation: onoma-horohoro 1.2s ease-in both;
}

/* 動きを減らす設定の人には、消えるだけ */
@keyframes onoma-horohoro-fade { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .onoma-horohoro { animation: onoma-horohoro-fade 0.2s ease-out both; }
}

涙が静かにこぼれる

悲しい気持ち

上から60%落ちて、着くとつぶれて消えるのをくり返す。

時間
1.6s
くり返し
する
速さの変化
ease-in
動かすもの
位置・大きさ・透明度 translate scale opacity
CSS を見る
@keyframes onoma-horohoro-2 {
  0% { transform: translate(0%, -60%) scale(0.9, 1.1); opacity: 0; }
  12% { transform: translate(0%, -49.71%) 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-horohoro-2 {
  animation: onoma-horohoro-2 1.6s ease-in infinite both;
  transform-origin: 50% 100%;
}

/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
  .onoma-horohoro-2 { animation: none; }
}

近い動きと見比べる