EASING / 113

Linear

ずっと、同じ速さ
始めから終わりまで、一定の速さで進みます。

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

ラボで詳しく試す ↗

ひとつ試すなら

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

こんなときに

進捗表示、回転、一定速度を伝える表現に。

仕組みと使い方

時間が半分なら、移動距離もちょうど半分です。

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

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

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