Skip to content

Fireworks

Fireworks bursts explode one after another in a night sky above a festive announcement, in pure CSS.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

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

Archive contents

effet-feux-artifice-html-tailwind.zip3 files · 4 Ko

  • index.html15 Ko
  • README.md3 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • 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
    Component
  • 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
    Component
  • 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
    Component