Badge Unlock
A hexagon badge outline draws, a star shrinks down onto it and rays burst around it
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A badge animation for an achievement: the hexagonal badge's outline is first drawn along its edges in one stroke, then the inside fades in to fill; a star drops quickly from huge, spinning and transparent down onto the center of the badge with a bounce, like a stamp; at the same time a ring of short rays shoots outward around the badge and vanishes, and the whole badge pops; then the achievement name and “Achievement unlocked” float up below in turn. (GSAP timeline: DrawSVG for the outline → fillOpacity → star fromTo scale 3 → 1, rotation −60 → 0, back.out → rays DrawSVG "0% 0%" → "0% 100%" → "100% 100%")
When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.
How to use it
- Tap “Copy AI prompt”.
- Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More shape & svg effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →