Skip to content

Meteor shower

Shooting stars cross a starry night sky diagonally at irregular intervals, in pure CSS.

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

Description

On a night sky drawn with gradients (a few fixed stars and a bluish glow), six streaks of light appear, shoot diagonally and fade out, each with its own duration and delay, so the shower never feels clockwork. Ideal for a night event, a planetarium, a campsite, a bedding brand or a launch party. Only the transform and opacity of the streaks are animated, with no image or script; they are hidden from screen readers. The sky stays dark in both light and dark mode and the text keeps AA contrast on it. Each streak’s position, duration and delay are set in its style attribute (--efpm-d, --efpm-delay). With prefers-reduced-motion two streaks stay still in the sky. No horizontal scrolling from 360 px.

Code

Loading the code…

The code of this component in

Archive contents

effet-pluie-meteores-html-tailwind.zip3 files · 4 Ko

  • index.html4 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