02.04 · Entrance & Exit

Scale In / Zoom In

Grows from smaller to full size. Best for pop-ups and menus.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

◆
Scale Arrival
A springy finish makes it land. Try growing it from a corner.

Try it

Change a setting and the animation plays again.

Starting size

Starting smaller makes a bigger zoom.

Grows from

Grow from a corner to look like it came from a button.

Speed

Slow is easy to follow. Fast feels snappy.

More optionsFewer options

Feel

Springy grows a little too big, then settles.

Stops it flashing in at full strength while tiny.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a scale-in entrance to [the element you want to animate]. It should start smaller than its final size and grow to full size, anchored at the point given in the settings: its center, or an edge or corner so it seems to grow out of the button that opened it. A springy curve lets it overshoot slightly and settle, which makes the arrival feel physical. Unless the settings turn it off, fade it in while it grows so it never flashes at full strength while it is still tiny. Animate only its size and opacity. If the visitor has reduced motion turned on, show it at full size without the zoom. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Pop-ups and dialogs
  • Menus
  • Cards in a grid
  • Checkmarks

Avoid on

  • Long text
  • Full-page sections