Meteor shower
Shooting stars cross a starry night sky diagonally at irregular intervals, in pure CSS.
- Tailwind
- React
- CSS
- WordPress
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
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