07.20 · Ambient & Background
Fireworks
Rockets rise and burst into glowing sparks that fall and fade. Best for celebrations.
Watch it
It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.
Inside, the dashed line is a rocket's climb: it bursts where it stops rising. Arrows show sparks flying out and slowing, gravity pulling them down, and each bar how much glow is left.
Hangs in place has no gravity and no fading: its sparks stop in midair, fully lit, then go out together. Falls and fades pulls them down while they dim.
Try it
Change a setting and see the difference as it moves.
How often
Rarely keeps it calm behind text.
Colors
Each burst picks one color from the set.
Trails
Trails show the path each spark has flown.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add fireworks to [the dark section you want them over]. On a see-through canvas laid over the section, launch a rocket from the bottom every so often; it slows as it climbs and, at the top of its climb, bursts into many sparks that fly out in all directions. Slow the sparks a little on every frame, pull them gently down and fade them out, so each burst blooms, droops and dies away. For trails, cover the canvas with a faint see-through layer instead of clearing it, the same number of times per second on every screen. Use fewer sparks on phones. If the visitor has reduced motion turned on, show a still picture of the bursts. 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.