4.0.1 • Published 4 years ago

@chad.b.morrow/sparkles v4.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

sparkles

https://joshwcomeau.com/react/animated-sparkles-in-react/

This library provides one default export: the Sparkles React component.

Props

Default props are set to the following and can be changed by passing a different value for any of them:

  • rate = 250
  • variance = 200
  • minSize = 10
  • maxSize = 20
  • colors = '#FFC700'
  • isToggleable = true
  • style = {}
  • generatePosition = defaultGeneratePosition

The colors prop is special in that instead of passing an array of color strings, you may also pass the string "rainbow" which sets the colors value to a pre-selected array of color strings for a rainbow effect as seen in Josh W Comeau's original blog post.

4.0.1

4 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago