Shooting Stars

A high-performance deep-space cosmos background featuring multi-depth twinkling celestial stars, glowing atmospheric nebula clouds, and cinematic shooting stars with luminous head flares, tapered fading trails, ember stardust, and click-to-summon interactivity.

Trail Tint:
Celestial Shooting Stars

Shooting Stars Canvas

Twinkling celestial starfield, smooth linear gradients, and shooting stars with ember stardust shedding.

Click or tap anywhere to summon a meteor

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/shooting-stars

API Reference

PropTypeDefaultDescription
childrenReactNodeOptional content rendered above the starry sky with full interactivity and clickability
backgroundstring'#020617'Deep space background color (CSS color, hex, rgba, or gradient)
starCountnumber120Total number of ambient background stars distributed across the sky
starColorsstring[]['#FFFFFF', '#E0F2FE', '#C7D2FE', '#FEF08A']Palette of celestial tints applied to ambient background stars
minStarSizenumber0.6Minimum radius in pixels of ambient stars
maxStarSizenumber2.2Maximum radius in pixels of ambient stars
twinkleSpeednumber1Frequency speed multiplier for ambient star twinkle pulsation
trailColorstring'#38BDF8'Primary neon/atmospheric color of the shooting star trail
headColorstring'#FFFFFF'Luminous core burst color of the shooting star meteor head
intervalnumber2200Average delay in milliseconds between automatic shooting star spawns
speed[number, number] | number[12, 22]Speed range [min, max] or uniform velocity in pixels per frame
trailLength[number, number] | number[90, 180]Trail length range [min, max] or uniform length in pixels
anglenumber42Trajectory flight angle in degrees clockwise from horizontal (45° is down-right)
maxActiveShootingStarsnumber2Maximum concurrent active meteors streaking across the sky at once
showEmbersbooleantrueWhether shooting stars shed glowing stardust ember particles in their wake
nebulabooleantrueEnables layered atmospheric cosmic nebula clouds in the deep background
clickToSpawnbooleantrueEnables clicking or tapping to summon a shooting star sweeping past the cursor
parallaxbooleantrueEnables subtle mouse parallax perspective shifting background stars by depth
classNamestringAdditional CSS classes for container sizing, layout, and styling