Toggle Sidebar B
AppearanceLight & dark mode D

Glare Hover

Adds a realistic moving glare highlight on hover over any element.

Default

Hover the card and a glare sweeps across it. Every prop is wired to the controls underneath.

Dark previewReplay previewOpen in new tab

Hover Me

Customize

Glare Color
Glare Opacity0.3
Glare Size300%
Transition Duration800ms

API Reference

GlareHover

PropTypeDefaultDescription
widthstring"500px"The width of the hover element.
heightstring"500px"The height of the hover element.
backgroundstring"#000"The background color of the element.
borderRadiusstring"10px"The border radius of the element.
borderColorstring"#333"The border color of the element.
glareColorstring"#ffffff"The color of the glare effect (hex format).
glareOpacitynumber0.5The opacity of the glare effect (0-1).
glareAnglenumber-45The angle of the glare effect in degrees.
glareSizenumber250The size of the glare effect as a percentage (e.g. 250 = 250%).
transitionDurationnumber650The duration of the transition in milliseconds.
playOncebooleanfalseIf true, the glare only animates on hover and doesn't return on mouse leave.

Slots

PropTypeDefaultDescription
defaultslot-The content to display inside the glare hover element. The original takes it as children.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The glare is a CSS pseudo-element that only reacts to pointer hover. Keyboard focus does not trigger it.