Fireworks
Fireworks bursts explode one after another in a night sky above a festive announcement, in pure CSS.
- Tailwind
- React
- CSS
- WordPress
Description
Five bursts of different colours explode one after another high in the sky: twelve sparks leave the centre along their angle, stretch and fade out, and the cycle starts again. Perfect for a New Year’s Eve, a wedding, a national holiday, a company anniversary or an opening. No canvas or script: each spark is an element whose transform and opacity alone are animated, the angle coming from an --efea-a variable, the burst colour and delay from --efea-color and --efea-delay; add or move bursts in the markup. The fireworks stay in the upper half, away from the text, which keeps AA contrast on the dark sky in light and dark mode; the whole decoration is hidden from screen readers. With prefers-reduced-motion the bursts are frozen in full bloom. No horizontal scrolling from 360 px.
Code
Loading the code…
The code of this component in
Reviews
No reviews yet.
In the same spirit

A large heading whose words turn from grey to ink as the page scrolls, then whose key phrases get a marker stroke, in pure CSS with a readable fallback.
- Tailwind
- React
- CSS
- WordPress

Cards that fade in as they enter the screen, one after another in each row, without a line of JavaScript and with a static fallback.
- Tailwind
- React
- CSS
- WordPress

A translucent card with a saturated blur whose sharper edge refracts the colourful shapes drifting behind it, with an opaque fallback when transparency is reduced.
- Tailwind
- React
- CSS
- WordPress

A help block shaped like a conversation: bubbles, three animated typing dots and clickable quick replies that show your answers to frequent questions, frozen under prefers-reduced-motion.
- Tailwind
- React
- CSS
- WordPress