OnomaUI

ごとごと の動き

「ふたが揺れて鳴る」を表す動きです。

gotogoto1種類公式

見本

ふたが揺れて鳴る

煮込み・処理中

5%の高さで弾み、着くたびに14%つぶれるのをくり返す。

時間
0.36s
くり返し
する
速さの変化
ease-in-out
動かすもの
位置・大きさ translate scale
CSS を見る
@keyframes onoma-gotogoto {
  0% { transform: translate(0%, 0%) scale(1.14, 0.86); animation-timing-function: cubic-bezier(.3,.7,.5,1); }
  50% { transform: translate(0%, -5%) scale(0.95, 1.05); animation-timing-function: cubic-bezier(.5,0,.7,.3); }
  100% { transform: translate(0%, 0%) scale(1.14, 0.86); }
}

.onoma-gotogoto {
  animation: onoma-gotogoto 0.36s ease-in-out infinite both;
  transform-origin: 50% 100%;
}

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

近い動きと見比べる