OnomaUI

はらはら の動き

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

harahara2種類公式

意味ごとの動き

花びらが散る

カードを消す

左右に5回、幅30%・傾き最大20°で揺れながら、下へ220%落ちて消える。

時間
2s
くり返し
しない
速さの変化
ease-in-out
動かすもの
位置・回転・透明度 translate rotate opacity
CSS を見る
@keyframes onoma-harahara {
  0% { transform: translate(0%, 0%) rotate(0deg); opacity: 1; animation-timing-function: ease-in-out; }
  20% { transform: translate(28%, 27.15%) rotate(18.67deg); opacity: 1; animation-timing-function: ease-in-out; }
  40% { transform: translate(-26%, 66.85%) rotate(-17.33deg); opacity: 1; animation-timing-function: ease-in-out; }
  60% { transform: translate(24%, 113.25%) rotate(16deg); opacity: 1; animation-timing-function: ease-in-out; }
  80% { transform: translate(-22%, 164.6%) rotate(-14.67deg); opacity: 0.6; animation-timing-function: ease-in-out; }
  100% { transform: translate(0%, 220%) rotate(6deg); opacity: 0; animation-timing-function: ease-in-out; }
}

.onoma-harahara {
  animation: onoma-harahara 2s ease-in-out both;
}

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

危なっかしく気をもむ

危うい操作の前

下の端を軸に、左右6°ずつ揺れ続ける。

時間
0.7s
くり返し
する
速さの変化
ease-in-out
動かすもの
回転 rotate
CSS を見る
@keyframes onoma-harahara-2 {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(6deg); }
}

.onoma-harahara-2 {
  animation: onoma-harahara-2 0.7s ease-in-out infinite alternate both;
  transform-origin: 50% 100%;
}

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

近い動きと見比べる