Gravity Stars Background

A background component featuring an interactive gravity stars effect.

Made by imskyleen
Edit on GitHub

Installation

Usage

<GravityStarsBackground />

API Reference

GravityStarsBackground

PropTypeDefault
starsCount?
number
75
starsSize?
number
2
starsOpacity?
number
0.75
glowIntensity?
number
15
glowAnimation?
'instant' | 'ease' | 'spring'
ease
movementSpeed?
number
0.3
mouseInfluence?
number
100
mouseGravity?
'attract' | 'repel'
attract
gravityStrength?
number
75
starsInteraction?
boolean
false
starsInteractionType?
'bounce' | 'merge'
bounce
...props?
React.ComponentProps<"div">
-

Credits

Built by Skyleen. The source code is available on GitHub.

Last updated: 11/5/2025