02.13 · Entrance & Exit

Rotate In

Spins into place while it grows. Best for icons, stars and badges.

Watch it

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

Try it

Change a setting and the animation plays again.

How much it spins

A bigger spin feels more playful.

Speed

Slow is easy to follow. Fast feels snappy.

More optionsFewer options

Spin direction

Which way it turns as it lands.

Goes slightly too far, then settles.

Makes the spin look like an arrival.

Softens the first moment.

Copy the prompt

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

Add a rotate-in entrance to [the icon or badge you want to animate]. It should spin around its center as it appears. Growing from small at the same time makes it look like it is arriving rather than just turning, and a slight overshoot at the end makes the spin land instead of gliding to a stop. Use this on round or symmetric shapes like icons, stars, gears and badges; it looks wrong on text or wide rectangles. If the visitor has reduced motion turned on, show it in place without spinning. 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

  • Icons
  • Badges and stars
  • Logos
  • Small decorations

Avoid on

  • Text
  • Wide boxes and cards