react-animated-stars
TypeScript icon, indicating that this package has built-in type declarations

0.1.2Β β€’Β PublicΒ β€’Β Published

Animated Stars Background

React Animated Stars Background, simple to use πŸš€

Build Status

Wrap it around any component to display a Galaxy Background ! Start customizing it using the proprieties descibed below πŸ‘‡

Alt Text

Features

  • Import the React Component and use it as a Wrapper
  • Dynamic controls (see properties )

Installation

  npm install react-animated-stars

Properties

Propertie Name Description Type Default Value
starCount Total number of stars ( high value affect performance ) number 150
rotationSpeed The rotation speed of stars ( high value affect performance ) number 0.01
minSize Star's minimum size for our randomizer (⚠️ ] 0 ; 2 [ ) number 0.5
maxSize Star's maximum size for our randomizer (⚠️ ] 0 ; 2 [ && > minSize ) number 0.5
opacity Galaxy Backgound opacity number 0.9
bgColor Background color string (Hex Code) #000000
starColor Stars color string (Hex Code) #ffffff
innerRadius Size of the empty star area number 100

Package Sidebar

Install

npm i react-animated-stars

Weekly Downloads

4

Version

0.1.2

License

MIT

Unpacked Size

5.25 MB

Total Files

22

Last publish

Collaborators

  • thomas_berton