Meteors

Also called meteor shower, shooting stars, or meteor effect

Thin streaks of light with bright heads that shoot diagonally across a dark card or hero at random intervals, like a meteor shower.

Meteors explained

A meteor effect sends short streaks of light across a dark surface at an angle. Each streak has a small glowing head and a tail that fades out behind it, and they start at different places and times, so the scene looks like a clear night with shooting stars. It shows up behind launch announcements, dark pricing cards, and space-themed heroes.

Each meteor is a thin element with a gradient tail, rotated to a shared angle and moved along its own length with a transform animation. Give every meteor its own start point, duration, and negative animation-delay, and spend only part of each cycle in flight, so they fire at uneven intervals and never settle into a visible rhythm.

Keep the count modest, 10 to 20 at a time, and keep the streaks behind the content with pointer-events: none and aria-hidden. Check that text stays readable when a bright head crosses it. Under prefers-reduced-motion, show a still sky.

Often confused with

Particle background
A particle background drifts dots slowly in every direction. Meteors are quick streaks that all travel at one angle and vanish.
All terms

Particle background

A backdrop of small dots that drift slowly, often linked by faint lines when they pass close to each other, behind a hero or sign-in screen.

Warp background

A tunnel of grid walls receding to a vanishing point, with streaks of light racing along them, that frames a card in the middle.

Delay

The wait between the moment an animation is triggered and the moment it starts moving, used to sequence motion or ignore brief triggers.

Looping animation

An animation that plays more than once, either a set number of times or forever, set in CSS with animation-iteration-count.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.