Pricing
Get Started
  • Introduction
  • Installation
  • MCP Server
  • Saved
Site
  • Builder (Beta)
  • Pricing
  • Roadmap
  • Affiliates
Browse
  • All Components25 New
Text32
Reveal & Decode11
  • Blur Highlight
  • Cipher Reveal
  • Ghost Type
  • Glyph Lottery
  • Luminous Type
  • Signal Type
  • Smoke Type
  • Staggered Text
  • Text Morph
  • Typographic Wall
  • Vapor Type
Kinetic & 3D11
  • 3D Letter Swap
  • 3D Text Reveal
  • Bending Marquee
  • Mesh Lettering
  • Orbital Type
  • Ribbon Type
  • Rising Ink
  • Speeding Text
  • Text Cube
  • Text Path
  • Wave Lettering
Interactive & Physics10
  • ASCII Ripple
  • Domino Lettering
  • Elastic Lettering
  • Glitch Text
  • Gravity Letters
  • Particle Text
  • Shatter Type
  • Spring Lettering
  • Stipple Type
  • Text Scatter
Backgrounds106
Gradients & Fluids21
  • Aura Blob
  • Aurora Blur
  • Chroma Waves
  • Cloud Atlas
  • Color Loops
  • Glowing Ridges
  • Gradient Bars
  • Gradient Blob
  • Grain Wave
  • Liquid Bars
  • Minimal Ripple
  • Radial Liquid
  • Rubber Fluid
  • Satin Ridges
  • Shader Waves
  • Silk Waves
  • Simple Swirl
  • Spectral Clouds
  • Stipple GradientNew
  • Swirl Blend
  • Watercolor
Light & Beams14
  • Aurora Beam
  • Axial Beam
  • Blurred Rays
  • Chroma Blinds
  • Dappled Light
  • Eclipse
  • Falling Rays
  • Flame Paths
  • Horizon Bloom
  • Light Droplets
  • Neon Reveal
  • Nexus Rays
  • Rolling Blinds
  • Shadow Bars
Lines & Filaments12
  • Concentric Tides
  • Glowing Wave
  • Interference Ribbons
  • Liquid Lines
  • Long Exposure
  • Luminous Filaments
  • Neural Flash
  • Neural Float
  • Rising Lines
  • Spiral Funnel
  • Synaptic Shift
  • Twilight Lines
Dots & Pixels22
  • Blinking Dots
  • Blinking Squares
  • Chroma Current
  • Circuit FlashNew
  • Cursor Wave
  • Dither Wave
  • Dot Shift
  • Dotted WavesNew
  • Glue Dots
  • Grid Rise
  • Halftone Vortex
  • Halftone Wave
  • Hexagonal Vault
  • Mosaic
  • Mosaic Waves
  • Pixel Rain
  • Square Matrix
  • Squares Terminal
  • Squircle Shift
  • Tech Wall
  • Thinking Dots
  • Voxel Arc
Particles & Space11
  • Astral Shell
  • Binary Orbits
  • Contour Tide
  • Fading Stars
  • Glimmer Wrap
  • Grain MassNew
  • Ring Field
  • Rising Particles
  • Rotating Stars
  • Spectral Drape
  • Star Burst
Horizons & Tunnels10
  • Glitter Warp
  • Landscape
  • Lightspeed
  • Neural Tunnel
  • Perspective Grid
  • Ravine
  • Retro Lines
  • Star Swipe
  • Vortex
  • Warp Twister
ASCII & Glyphs9
  • ASCII StreamNew
  • ASCII Tiles
  • Ascii Waves
  • Glyph Ember
  • Glyph Orb
  • Glyph Sonar
  • Glyph Tide
  • Liquid Ascii
  • Terminal Rain
Glass & Chrome7
  • Glass CoinsNew
  • Glass Flow
  • Glass KeysNew
  • Glass Tiles
  • Metallic Swirl
  • Prismatic Slats
  • Spectral TilesNew
Images & Galleries52
Galleries & Carousels33
  • Album Rail
  • Bend Gallery
  • Circle Gallery
  • Circle Stack
  • Circles
  • Concave Carousel
  • Constellation Gallery
  • Contact Sheet
  • Depth Ribbon
  • Dolly Gallery
  • Draggable Grid
  • Elastic Reel
  • Expanding Grid
  • Gradient Carousel
  • Helix Gallery
  • Infinite Gallery
  • Inverted Dome
  • Iris Gallery
  • Lenticular Carousel
  • Liquid CirclesNew
  • Momentum Ring
  • Orbit Reel
  • Parallax Carousel
  • Passage Gallery
  • Prism Carousel
  • Reel Gallery
  • Rotating Cards
  • Scroll Bend
  • Skewed Carousel
  • Spin Shutter
  • Tilted Tiles
  • Tumble Carousel
  • Twisting Gallery
Image Effects14
  • Comparison Slider
  • Depth Image
  • Ember Reveal
  • Glass Reveal
  • Hover Preview
  • Liquid Swap
  • Loupe Image
  • Particle Image
  • Particle Morph
  • Pixel Reveal
  • Pixel Sculpt
  • Pixelate Hover
  • Pond Image
  • Shader Reveal
Scroll Stories5
  • Frame Scrub
  • Scroll Mask
  • Scroll Portal
  • Scroll Stack
  • Tile Reveal
Interface30
Cards & Widgets15
  • Animated ListUpdated
  • Arc ListNew
  • Card Spread
  • Chroma Card
  • Click Stack
  • Credit Card
  • Depth Card
  • Frame Border
  • Modal Cards
  • Parallax Cards
  • Parallax Pills
  • Preloader
  • Shader Card
  • SignatureNew
  • Warped Card
Product Mockups8
  • Browser WindowNew
  • Center Flow
  • Code MorphNew
  • Device
  • Magic Transform
  • PipelineNew
  • Spin ViewerNew
  • Terminal ReplayNew
Data & Media7
  • Globe
  • Instrument DialNew
  • Particle ChartNew
  • Signal MapNew
  • Simple Graph
  • Story PlayerNew
  • Waveform PlayerNew
3D & Tactile16
Orbs & Shapes9
  • Agentic Ball
  • AI Blob
  • Black Hole
  • Chrome Orbit
  • Fog Sphere
  • Photon Knot
  • Portal
  • Specter Orb
  • Wireframe Ball
Tactile & Physics7
  • Elastic Sticker
  • KeycapsNew
  • Page Flip
  • Pin ScreenNew
  • Receipt PrinterNew
  • Scratch CardNew
  • Tumble Wall
Cursors19
Custom Cursors7
  • Custom Cursor
  • Drafting Cursor
  • Glass Cursor
  • Gyroscope Cursor
  • Label Orbit
  • Smooth Cursor
  • User Cursor
Cursor Trails12
  • Arc Cursor
  • Ascii Cursor
  • Celebration Cursor
  • Chroma Halo
  • Dither Cursor
  • Glyph Stream
  • Pigment Trail
  • Pixel Magnet
  • Ribbon Trail
  • Snapshot Trail
  • Stardust Cursor
  • Tessera Trail
  1. Docs
  2. Components
  3. Backgrounds
  4. Particles & Space
  5. Fading Stars

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—