EASING / 117

Ease in out

ゆっくり、速く、ゆっくり
ゆっくり始まり、中間で速くなり、終わりに再び減速します。

実際のHTML・CSSで描かれた見本です。

ラボで詳しく試す ↗

ひとつ試すなら

どこが変わるかを観察して、似た表現と見比べてみよう。

こんなときに

状態間の移動や、視線を追わせる連続した変化に。

仕組みと使い方

始点と終点で落ち着く、左右対称の曲線です。

イージング速度加速減速加減速対称
実装コードを見る
<div class="demo"></div>

<style>
.demo {
  width: 85px; height: 85px; border-radius: 50%;
  color: #30323c;
  background: #30323c;
  animation: easing-ease-in-out 1800ms ease-in-out infinite both;
}

@keyframes easing-ease-in-out {
  0% { transform: translateX(-80px); }
  100% { transform: translateX(80px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo { animation: none; }
}
</style>