OnomaUI

ひたひた の動き

「静かに迫ってくる」を表す動きです。

hitahita1種類公式

見本

静かに迫ってくる

順番が近づく

6歩、4%ずつ跳ねながら80%進むのをくり返す。

時間
3s
くり返し
する
速さの変化
linear
動かすもの
位置・透明度 translate opacity
CSS を見る
@keyframes onoma-hitahita {
  0% { transform: translate(-40%, 0%); opacity: 0; animation-timing-function: ease-out; }
  8.33% { transform: translate(-33.33%, -4%); opacity: 1; animation-timing-function: ease-in; }
  16.67% { transform: translate(-26.67%, 0%); opacity: 1; animation-timing-function: ease-out; }
  25% { transform: translate(-20%, -4%); opacity: 1; animation-timing-function: ease-in; }
  33.33% { transform: translate(-13.33%, 0%); opacity: 1; animation-timing-function: ease-out; }
  41.67% { transform: translate(-6.67%, -4%); opacity: 1; animation-timing-function: ease-in; }
  50% { transform: translate(0%, 0%); opacity: 1; animation-timing-function: ease-out; }
  58.33% { transform: translate(6.67%, -4%); opacity: 1; animation-timing-function: ease-in; }
  66.67% { transform: translate(13.33%, 0%); opacity: 1; animation-timing-function: ease-out; }
  75% { transform: translate(20%, -4%); opacity: 1; animation-timing-function: ease-in; }
  83.33% { transform: translate(26.67%, 0%); opacity: 1; animation-timing-function: ease-out; }
  91.67% { transform: translate(33.33%, -4%); opacity: 1; animation-timing-function: ease-in; }
  100% { transform: translate(40%, 0%); opacity: 0; }
}

.onoma-hitahita {
  animation: onoma-hitahita 3s linear infinite both;
}

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

近い動きと見比べる