Fireworks
Fireworks rise to where you click and burst; they launch on their own when idle
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A night-sky background: clicking anywhere launches a firework from the bottom of the screen up to the click point, where it bursts into dozens of sparks that scatter, fall under gravity, slow with drag and gradually fade, leaving brief trails; when idle, fireworks launch randomly on their own. Good for campaign pages and completion celebrations. (Canvas 2D: rockets rise with ease-out interpolation; on burst create a particle array, each frame updating velocity (× drag, + gravity) and lifetime; cover the canvas with a semi-transparent fill each frame for trails)
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 background effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →