Stars Background
A dark, interactive background featuring animated dots of varying sizes and speeds, simulating a dynamic and immersive starry space effect.
Made by imskyleen
Installation
Usage
Props
StarsBackground
Prop | Type | Default |
---|---|---|
starColor? | string | #fff |
transition? | SpringOptions | { stiffness: 50, damping: 20 } |
speed? | number | 50 |
factor? | number | 0.05 |
className? | string | - |
children? | React.ReactNode | - |
StarLayer
Prop | Type | Default |
---|---|---|
starColor? | string | #fff |
transition? | Transition | { repeat: Infinity, duration: 50, ease: "linear" } |
size? | number | 1 |
count? | number | 1000 |
Credits
- Credits to umangladani for the inspiration