OnomaUI

がらっ の動き

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

gara2種類公式

意味ごとの動き

戸を勢いよく開ける

パネルを引き出す

左180%の所から、滑るように入って止まる。

時間
0.36s
くり返し
しない
速さの変化
cubic-bezier(.2,.8,.2,1)
動かすもの
位置・透明度 translate opacity
CSS を見る
@keyframes onoma-gara {
  0% { transform: translate(-180%, 0%); opacity: 0; }
  40% { transform: translate(-108%, 0%); opacity: 1; }
  100% { transform: translate(0%, 0%); opacity: 1; }
}

.onoma-gara {
  animation: onoma-gara 0.36s cubic-bezier(.2,.8,.2,1) both;
}

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

様子が一変する

画面の切り替え

左の端を軸に、180°めくれて開く。

時間
0.5s
くり返し
しない
速さの変化
ease-in-out
動かすもの
奥行きの回転 rotateY
CSS を見る
@keyframes onoma-gara-2 {
  0% { transform: perspective(400px) rotateY(0deg); }
  100% { transform: perspective(400px) rotateY(-180deg); }
}

.onoma-gara-2 {
  animation: onoma-gara-2 0.5s ease-in-out both;
  transform-origin: 0% 50%;
}

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

近い動きと見比べる

同じ動きを表す言葉