Beta

Stars Background

A dark, interactive background featuring animated dots of varying sizes and speeds, simulating a dynamic and immersive starry space effect.

Installation

Props

StarsBackground

PropTypeDefault
children?
React.ReactNode
-
className?
string
-
factor?
number
0.05
speed?
number
50
transition?
SpringOptions
{ stiffness: 50, damping: 20 }
starColor?
string
#fff

StarLayer

PropTypeDefault
count?
number
1000
size?
number
1
transition?
Transition
{ repeat: Infinity, duration: 50, ease: "linear" }
starColor?
string
#fff

Credits

On this page