Falling Stars Animation — Shooting Stars in CSS

Send shooting stars streaking across a night-sky hero, or let star shapes drift down and twirl. Control how often they appear, the trail length, angle and color.

Runs in your browserUpdated

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Falling Stars Animation

  1. The preview starts with Shooting stars. Pause between sets how rarely each one appears.
  2. Set the trail length with Size and the angle with Wind.
  3. Choose Falling stars for star shapes that drift down and spin.
  4. Copy the code onto a dark section.

Shooting stars with one keyframe

A shooting star is a thin gradient streak — transparent tail, bright glowing head — rotated to its direction of travel. The keyframe moves it across the box in the first part of its cycle and keeps it hidden for the rest, so each star flashes by and then waits; different delays spread them out.

More effects are in the Particle Animation Generator.

Also searched as: shooting star css, shooting star animation, meteor animation css, night sky animation css, falling star effect, star animation css.

Tools that pair well with the Falling Stars Animation

  • CSS Snow Effect — Let it snow on your website for the holidays: soft snow or snowflakes, light flurries or a blizzard.
  • CSS Rain Animation — Make it rain on a page or hero section — from a light drizzle to a slanted downpour.
  • Confetti Animation CSS — Celebrate a launch, a sign-up or a birthday with falling confetti that flutters and tumbles in mixed colors.
  • CSS Keyframes Generator — A visual editor for @keyframes.

Frequently asked questions

How do I make a shooting star animation in CSS?
Animate a thin gradient line diagonally across the screen, rotated to match its path, during the first part of the keyframe and keep it off-screen for the rest. Choose Shooting stars here and copy the code.
How do I make them less frequent?
Raise Pause between and lower How many.
Can I use my own star image?
Yes — choose My SVG / image and upload it, or Emoji and type a star.
Can I install Falling Stars Animation as a web app and use it offline?
Yes. Falling Stars Animation is an installable web app (PWA) — installed from your browser, not downloaded from an app store. Click Install app at the top of this page in Chrome or Edge (Windows, macOS, Linux, ChromeOS) or on Android, use Share → Add to Home Screen on iPhone and iPad, or File → Add to Dock in Safari 17+ on a Mac. It then opens in its own window with its own icon, and because it runs entirely in your browser it keeps working offline. Firefox on desktop can’t install web apps. How installing works.

Related tools