OnomaUI

ぷりぷり の動き

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

puripuri2種類公式

意味ごとの動き

怒って歩く

怒ったキャラクター

10%持ち上がっては、どしんと着いて10%つぶれるのをくり返す。

時間
0.6s
くり返し
する
速さの変化
ease-in-out
動かすもの
位置・大きさ translate scale
CSS を見る
@keyframes onoma-puripuri {
  0% { transform: translate(0%, 0%) scale(1, 1); animation-timing-function: ease-out; }
  25% { transform: translate(0%, -10%) scale(1, 1); animation-timing-function: cubic-bezier(.6,0,1,.6); }
  42% { transform: translate(0%, 0%) scale(1.1, 0.9); animation-timing-function: ease-out; }
  60% { transform: translate(0%, 0%) scale(1, 1); }
  100% { transform: translate(0%, 0%) scale(1, 1); }
}

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

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

弾力に富む

食べ物・素材の質感

横に22%伸びて縦に縮み、ぷるんと何度か揺れて戻る。

時間
0.5s
くり返し
しない
速さの変化
ease-in-out
動かすもの
大きさ scale
CSS を見る
@keyframes onoma-puripuri-2 {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.22, 0.8); }
  45% { transform: scale(0.87, 1.13); }
  65% { transform: scale(1.07, 0.94); }
  82% { transform: scale(0.98, 1.02); }
  100% { transform: scale(1, 1); }
}

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

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

近い動きと見比べる