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.
Inside, small copies of the badge along the arrow show it earlier in its spin, growing and turning; the arrow shows which way and how far it turns before it lands upright.
The spin makes Wide card's text look tipped over, while Round badge looks right at every angle. With Loop off, both rest just after the start.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.