MOTION / 007

Zoom in

小さく始まり、大きく
中心を保ちながら、小さな形から通常の大きさになります。

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

ラボで詳しく試す ↗

ひとつ試すなら

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

こんなときに

注目してほしい画像や選択状態を見せるとき。

仕組みと使い方

文字を大きく拡大すると、途中で輪郭が甘く見える場合があります。

拡大近づくzoomscale
実装コードを見る
<div class="demo"></div>

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

@keyframes zoom-in {
  0% { transform: scale(0.2); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .demo { animation: none; }
}
</style>