Meteors

A lightweight, highly aesthetic animated meteor shower effect that streams diagonal glowing celestial light beams across cards, badges, hero containers, and call-to-action sections.

Palette:
Meteors Stream

Meteor Stream Engine

Hardware-accelerated CSS keyframe streaks streaming seamlessly across cards and hero containers.

Card Micro-Motion

Zero JavaScript Runtime

Pure CSS keyframe transforms with randomized distribution and automatic prefers-reduced-motion support.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/meteors

API Reference

PropTypeDefaultDescription
numbernumber20Total number of animated meteor streaks to generate
colorstring'#94A3B8'Luminous head color and halo glow tint
trailColorstring'#64748B'Base color of the gradient fading tail
tailLengthnumber60Length in pixels of each meteor streak tail
anglenumber215Flight trajectory angle in degrees (215° is down-left)
minDelaynumber0.2Minimum animation delay in seconds
maxDelaynumber1.2Maximum animation delay in seconds
minDurationnumber2Minimum animation duration in seconds
maxDurationnumber8Maximum animation duration in seconds
classNamestringAdditional CSS classes for container positioning
childrenReactNodeOptional content rendered above or inside the meteor container