Glare Hover

A hover effect component that creates a glare animation across elements

Hover Me

Usage

import GlareHover from './GlareHover'

<GlareHover
  glareColor="#ffffff"
  glareOpacity={0.3}
  glareAngle={-30}
  glareSize={300}
  transitionDuration={800}
  playOnce={false}
>
  <h2>Hover Me</h2>
</GlareHover>

Props

PropTypeDefaultDescription
glareColorstring"#ffffff"Color of the glare effect
glareOpacitynumber0.5Opacity of the glare effect
glareAnglenumber-45Angle of the glare effect in degrees
glareSizenumber250Size of the glare effect as percentage
transitionDurationnumber650Duration of the animation in milliseconds
playOncebooleanfalseWhether to play animation only once
widthstring"500px"Width of the container
heightstring"500px"Height of the container
backgroundstring"#000"Background color
borderRadiusstring"10px"Border radius
borderColorstring"#333"Border color