Pricing
Get Started
  • Introduction
  • Installation
  • MCP Server
  • Saved
Site
  • Builder (Beta)
  • Pricing
  • Roadmap
  • Affiliates
Browse
  • All Components80 New
Text34
  • 3D Letter Swap
  • 3D Text Reveal
  • ASCII Ripple
  • Bending Marquee
  • Blur Highlight
  • Cipher RevealNew
  • Domino LetteringNew
  • Elastic LetteringNew
  • Ghost TypeNew
  • Glitch Text
  • Glyph LotteryNew
  • Gravity LettersNew
  • Label OrbitNew
  • Luminous TypeNew
  • Mesh LetteringNew
  • Orbital TypeNew
  • Particle Text
  • Ribbon TypeNew
  • Rising InkNew
  • Shatter TypeNew
  • Signal TypeNew
  • Smoke TypeNew
  • Speeding Text
  • Spring LetteringNew
  • Staggered Text
  • Stipple TypeNew
  • Tessera TrailNew
  • Text Cube
  • Text MorphNew
  • Text Path
  • Text Scatter
  • Typographic WallNew
  • Vapor TypeNew
  • Wave LetteringNew
Backgrounds98
  • ASCII Tiles
  • Ascii Waves
  • Astral ShellNew
  • Aura Blob
  • Aurora Beam
  • Aurora Blur
  • Axial BeamNew
  • Binary OrbitsNew
  • Black Hole
  • Blinking Dots
  • Blinking Squares
  • Blurred Rays
  • Chroma Blinds
  • Chroma CurrentNew
  • Chroma Waves
  • Cloud AtlasNew
  • Color Loops
  • Concentric TidesNew
  • Contour TideNew
  • Dappled LightNew
  • Dither Wave
  • Dot Shift
  • Eclipse
  • Fading StarsNew
  • Falling Rays
  • Flame Paths
  • Fog Sphere
  • Glass Flow
  • Glass Tiles
  • Glimmer WrapNew
  • Glitter Warp
  • Glowing Ridges
  • Glowing Wave
  • Glue Dots
  • Glyph EmberNew
  • Glyph OrbNew
  • Glyph SonarNew
  • Glyph TideNew
  • Gradient Bars
  • Grain Wave
  • Halftone Vortex
  • Halftone Wave
  • Hexagonal VaultNew
  • Horizon BloomNew
  • Interference RibbonsNew
  • Landscape
  • Light Droplets
  • Lightspeed
  • Liquid Bars
  • Liquid Lines
  • Long Exposure
  • Luminous FilamentsNew
  • Metallic Swirl
  • Minimal Ripple
  • Mosaic
  • Mosaic Waves
  • Neon Reveal
  • Neural Flash
  • Neural Float
  • Neural Tunnel
  • Nexus RaysNew
  • Perspective Grid
  • Photon KnotNew
  • Pixel Rain
  • Prismatic SlatsNew
  • Radial Liquid
  • Ravine
  • Retro Lines
  • Ring FieldNew
  • Rising Lines
  • Rising Particles
  • Rolling Blinds
  • Rotating Stars
  • Rubber Fluid
  • Satin RidgesNew
  • Shader Waves
  • Shadow Bars
  • Silk Waves
  • Simple Swirl
  • Specter Orb
  • Spectral Clouds
  • Spectral DrapeNew
  • Spiral FunnelNew
  • Square Matrix
  • Squares Terminal
  • Squircle Shift
  • Star Swipe
  • Swirl Blend
  • Synaptic Shift
  • Tech Wall
  • Terminal RainNew
  • Thinking Dots
  • Twilight Lines
  • Vortex
  • Voxel ArcNew
  • Warp Twister
  • Watercolor
  • Wireframe Ball
3D & Shaders49
  • Agentic Ball
  • AI Blob
  • Album RailNew
  • Bend Gallery
  • Chrome OrbitNew
  • Circle Stack
  • Concave CarouselNew
  • Constellation GalleryNew
  • Contact SheetNew
  • Depth Card
  • Depth Image
  • Depth RibbonNew
  • Device
  • Dolly Gallery
  • Elastic ReelNew
  • Elastic StickerNew
  • Ember RevealNew
  • Expanding GridNew
  • Frame Border
  • Glass Reveal
  • Globe
  • Gradient Blob
  • Helix GalleryNew
  • Infinite Gallery
  • Inverted Dome
  • Iris GalleryNew
  • Lenticular Carousel
  • Momentum RingNew
  • Page Flip
  • Parallax Carousel
  • Particle Image
  • Particle Morph
  • Passage GalleryNew
  • Pixel Reveal
  • Pixel Sculpt
  • Pixelate Hover
  • Pond ImageNew
  • Portal
  • Prism CarouselNew
  • Rotating Cards
  • Scroll BendNew
  • Scroll Portal
  • Shader Card
  • Shader Reveal
  • Spin ShutterNew
  • Star Burst
  • Tumble Carousel
  • Twisting Gallery
  • Warped Card
Cursor Effects21
  • Arc CursorNew
  • Ascii Cursor
  • Celebration CursorNew
  • Chroma HaloNew
  • Cursor Wave
  • Custom Cursor
  • Dither Cursor
  • Drafting CursorNew
  • Glass Cursor
  • Glyph StreamNew
  • Grid Rise
  • Gyroscope CursorNew
  • Liquid Ascii
  • Parallax Pills
  • Pigment TrailNew
  • Pixel Magnet
  • Ribbon TrailNew
  • Smooth Cursor
  • Snapshot TrailNew
  • Stardust CursorNew
  • User Cursor
UI & Cards28
  • Animated List
  • Card Spread
  • Center Flow
  • Chroma Card
  • Circle Gallery
  • Circles
  • Click Stack
  • Comparison Slider
  • Credit Card
  • Draggable Grid
  • Frame Scrub
  • Gradient Carousel
  • Hover Preview
  • Liquid Swap
  • Loupe ImageNew
  • Magic Transform
  • Modal Cards
  • Orbit ReelNew
  • Parallax Cards
  • Preloader
  • Reel Gallery
  • Scroll Mask
  • Scroll Stack
  • Simple Graph
  • Skewed Carousel
  • Tile Reveal
  • Tilted Tiles
  • Tumble WallNew
  1. Docs
  2. Components
  3. Backgrounds
  4. Fading Stars
PreviousEclipseBackgroundsNextFalling RaysBackgrounds

Animated components, blocks, and templates for React. Pay once, ship stunning pages forever.

pro@reactbits.dev

Site

HomeBuilder (Beta)PricingTestimonialsFAQsRoadmapChangelogFree Components

Docs

IntroductionInstallationMCP ServerComponentsBlocksTemplates

Resources

AboutUse casesComparisonsAlternativesFor AI agents

Legal & Account

LoginAffiliateLicensePrivacyContact

© 2026 pro.reactbits.dev. All rights reserved.

Fading Stars

Stars rising from beyond the frame on trails that fade behind them

fading-stars-tw

Customize

Trail
Head
Background
Spread
150°
Focus
0.35
Origin Offset
0.18
Origin Shift
0.00
Count
480
Speed
0.16
Speed Variance
0.60
Acceleration
0.90
Trail Length
0.45
Trail Fade
1.60
Line Width
1.00px
Star Size
2.2px
Twinkle
0.35
Fade In
0.06
Fade Out
0.30
Depth
0.50
Glow
0.45
Intensity
1.00
Grain
0.30
Thrust
1.00
Burst
64
Quality
1.00

Props

32
NameTypeDefaultDescription
colors[string, string]["#5227FF", "#FF9FFC"]Trail colour and head colour. The end of each trail warms toward the head colour, and distant stars blend the two in OKLab. On light backgrounds both are deepened into ink tones.
backgroundColorstring"#0a0a0a"Colour behind the stars.
mode"auto" | "glow" | "ink""auto"glow adds light for dark backgrounds, ink draws fine dark lines for light ones. auto picks from the background brightness.
direction"up" | "down" | "left" | "right" | "out""up"Direction the stars travel. up, down, left and right stream from an origin beyond the opposite edge; out radiates in every direction from the centre.
spreadnumber150Width of the fan in degrees, from 1 to 180. Ignored by out, which always covers 360°.
focusnumber0.35How strongly stars gather toward the centre line of the fan, from 0 (even) to 1.
originOffsetnumber0.18How far beyond the edge the origin sits, as a fraction of the frame's shorter side. Larger values make the rays more parallel.
originShiftnumber0Position of the origin along its edge, from -1 (left or top) to 1 (right or bottom). With out it moves the centre horizontally.
countnumber480Number of stars in a 1280×720 frame, up to 3,000. Smaller frames show proportionally fewer.
speednumber0.16Base travel speed, in frame lengths per second along the direction of travel.
speedVariancenumber0.6How much speed differs from star to star, from 0 (all equal) to 1.
accelerationnumber0.9Warp acceleration: stars gather speed as they move away from the origin, from 0 to 4.
trailLengthnumber0.45Trail length as a fraction of the frame at base speed. Trails scale with each star's current speed, so faster stars streak longer.
trailFadenumber1.6Falloff along each trail from head to tail. Higher values give shorter, sharper tails.
lineWidthnumber1Width of the trails in pixels. Distant stars draw thinner.
starSizenumber2.2Diameter of the star heads in pixels. 0 hides them.
twinklenumber0.35How much the heads shimmer, from 0 to 1.
fadeInnumber0.06Share of the path over which a star fades in after entering the frame, from 0 to 1.
fadeOutnumber0.3Share of the path over which a star fades out before reaching the far edge, from 0 to 1. At 0 stars leave the frame instead.
depthnumber0.5Share of stars that sit further back: smaller, dimmer and slower, for parallax. From 0 to 1.
glownumber0.45Soft halo around the brightest heads, from 0 to 3.
intensitynumber1Overall exposure.
grainnumber0.3Fine film grain on lit areas, from 0 to 1. The background stays clean.
interactivebooleantrueRespond to the pointer.
thrustnumber1Moving the pointer over the stars speeds up the flow in proportion to pointer speed, stretching the trails, then it eases back over about a second. From 0 to 3.
burstnumber64Clicking or tapping launches a shell of this many stars at once, which rises as an expanding arc. Bursts stack. 0 turns it off.
pausedbooleanfalseFreeze the stars. Reduced-motion users always get a still frame.
qualitynumber1Resolution and star count scale from 0.25 to 1. Lower values are cheaper on large screens.
ref{ burst }—burst() launches a shell of stars, for example when a form is submitted.
childrenReactNode—Content placed over the stars.
classNamestring—Classes for the root element. It fills its parent, with a 240px minimum height.
styleCSSProperties—Inline styles for the root element.
colors[string, string]

Trail colour and head colour. The end of each trail warms toward the head colour, and distant stars blend the two in OKLab. On light backgrounds both are deepened into ink tones.

Default["#5227FF", "#FF9FFC"]
backgroundColorstring

Colour behind the stars.

Default"#0a0a0a"
mode"auto" | "glow" | "ink"

glow adds light for dark backgrounds, ink draws fine dark lines for light ones. auto picks from the background brightness.

Default"auto"
direction"up" | "down" | "left" | "right" | "out"

Direction the stars travel. up, down, left and right stream from an origin beyond the opposite edge; out radiates in every direction from the centre.

Default"up"
spreadnumber

Width of the fan in degrees, from 1 to 180. Ignored by out, which always covers 360°.

Default150
focusnumber

How strongly stars gather toward the centre line of the fan, from 0 (even) to 1.

Default0.35
originOffsetnumber

How far beyond the edge the origin sits, as a fraction of the frame's shorter side. Larger values make the rays more parallel.

Default0.18
originShiftnumber

Position of the origin along its edge, from -1 (left or top) to 1 (right or bottom). With out it moves the centre horizontally.

Default0
countnumber

Number of stars in a 1280×720 frame, up to 3,000. Smaller frames show proportionally fewer.

Default480
speednumber

Base travel speed, in frame lengths per second along the direction of travel.

Default0.16
speedVariancenumber

How much speed differs from star to star, from 0 (all equal) to 1.

Default0.6
accelerationnumber

Warp acceleration: stars gather speed as they move away from the origin, from 0 to 4.

Default0.9
trailLengthnumber

Trail length as a fraction of the frame at base speed. Trails scale with each star's current speed, so faster stars streak longer.

Default0.45
trailFadenumber

Falloff along each trail from head to tail. Higher values give shorter, sharper tails.

Default1.6
lineWidthnumber

Width of the trails in pixels. Distant stars draw thinner.

Default1
starSizenumber

Diameter of the star heads in pixels. 0 hides them.

Default2.2
twinklenumber

How much the heads shimmer, from 0 to 1.

Default0.35
fadeInnumber

Share of the path over which a star fades in after entering the frame, from 0 to 1.

Default0.06
fadeOutnumber

Share of the path over which a star fades out before reaching the far edge, from 0 to 1. At 0 stars leave the frame instead.

Default0.3
depthnumber

Share of stars that sit further back: smaller, dimmer and slower, for parallax. From 0 to 1.

Default0.5
glownumber

Soft halo around the brightest heads, from 0 to 3.

Default0.45
intensitynumber

Overall exposure.

Default1
grainnumber

Fine film grain on lit areas, from 0 to 1. The background stays clean.

Default0.3
interactiveboolean

Respond to the pointer.

Defaulttrue
thrustnumber

Moving the pointer over the stars speeds up the flow in proportion to pointer speed, stretching the trails, then it eases back over about a second. From 0 to 3.

Default1
burstnumber

Clicking or tapping launches a shell of this many stars at once, which rises as an expanding arc. Bursts stack. 0 turns it off.

Default64
pausedboolean

Freeze the stars. Reduced-motion users always get a still frame.

Defaultfalse
qualitynumber

Resolution and star count scale from 0.25 to 1. Lower values are cheaper on large screens.

Default1
ref{ burst }

burst() launches a shell of stars, for example when a form is submitted.

Default—
childrenReactNode

Content placed over the stars.

Default—
classNamestring

Classes for the root element. It fills its parent, with a 240px minimum height.

Default—
styleCSSProperties

Inline styles for the root element.

Default—