OnomaUI

よちよち の動き

「小さな歩幅で歩く」を表す動きです。

yochiyochi1種類公式

見本

小さな歩幅で歩く

はじめの一歩

8歩、8%ずつ跳ねながら60%進むのをくり返す。

時間
2s
くり返し
する
速さの変化
linear
動かすもの
位置・透明度 translate opacity
CSS を見る
@keyframes onoma-yochiyochi {
  0% { transform: translate(-30%, 0%); opacity: 0; animation-timing-function: ease-out; }
  6.25% { transform: translate(-26.25%, -8%); opacity: 1; animation-timing-function: ease-in; }
  12.5% { transform: translate(-22.5%, 0%); opacity: 1; animation-timing-function: ease-out; }
  18.75% { transform: translate(-18.75%, -8%); opacity: 1; animation-timing-function: ease-in; }
  25% { transform: translate(-15%, 0%); opacity: 1; animation-timing-function: ease-out; }
  31.25% { transform: translate(-11.25%, -8%); opacity: 1; animation-timing-function: ease-in; }
  37.5% { transform: translate(-7.5%, 0%); opacity: 1; animation-timing-function: ease-out; }
  43.75% { transform: translate(-3.75%, -8%); opacity: 1; animation-timing-function: ease-in; }
  50% { transform: translate(0%, 0%); opacity: 1; animation-timing-function: ease-out; }
  56.25% { transform: translate(3.75%, -8%); opacity: 1; animation-timing-function: ease-in; }
  62.5% { transform: translate(7.5%, 0%); opacity: 1; animation-timing-function: ease-out; }
  68.75% { transform: translate(11.25%, -8%); opacity: 1; animation-timing-function: ease-in; }
  75% { transform: translate(15%, 0%); opacity: 1; animation-timing-function: ease-out; }
  81.25% { transform: translate(18.75%, -8%); opacity: 1; animation-timing-function: ease-in; }
  87.5% { transform: translate(22.5%, 0%); opacity: 1; animation-timing-function: ease-out; }
  93.75% { transform: translate(26.25%, -8%); opacity: 1; animation-timing-function: ease-in; }
  100% { transform: translate(30%, 0%); opacity: 0; }
}

.onoma-yochiyochi {
  animation: onoma-yochiyochi 2s linear infinite both;
}

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

近い動きと見比べる