Click Spark

Creates spark animations on click with customizable effects

Configuring your account...

Please wait while we prepare everything for you

Usage

import ClickSpark from './ClickSpark';

<ClickSpark
  sparkColor='#fff'
  sparkSize={10}
  sparkRadius={15}
  sparkCount={8}
  duration={400}
>
  {/* Your content here */}
</ClickSpark>

Props

PropTypeDefaultDescription
sparkColorstring'#fff'Color of the spark lines
sparkSizenumber10Size of each spark line
sparkRadiusnumber15Radius of the spark explosion
sparkCountnumber8Number of sparks per click
durationnumber400Duration of the animation in ms
easingstring'ease-out'Easing function for animation
extraScalenumber1.0Additional scaling factor