EASING / 124

Cubic in

じわりと始まり、一気に進む
序盤の動きを小さく抑え、後半で強く加速します。

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

ラボで詳しく試す ↗

ひとつ試すなら

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

こんなときに

引き込まれるような退場や、勢いのある移動に。

仕組みと使い方

名称は曲線の系統を示します。この見本は同名の数式そのものではなく、3次ベジェ曲線による近似です。

イージング速度加速減速3乗キュービック
実装コードを見る
<div class="demo"></div>

<style>
.demo {
  width: 85px; height: 85px; border-radius: 50%;
  color: #30323c;
  background: #30323c;
  animation: easing-cubic-in 1800ms cubic-bezier(0.32, 0, 0.67, 0) infinite both;
}

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