A soft diagonal streak of light glides across the image on hover, like a reflection catching glass.
Adjust
45%
20deg
0.55
700ms
Metadata
interaction
Hover · static fallback
browser
Universal
reduced motion
included
touch fallback
Static on touch
Edit the CSS above — the preview updates live.
About Glare Sweep
Use Glare Sweep to add a moving highlight that slides across an image on hover — great for product shots, hero art and gallery tiles. Tune --ifx-gw (streak width), --ifx-ga (skew angle), --ifx-gb (highlight brightness) and --ifx-duration (sweep speed). The streak lives on a ::before pseudo-element and is idle at rest, so it stays static on touch and respects prefers-reduced-motion; keep the @media (hover) wrapper and reduced-motion block intact.
Use cases
portfolio
ecommerce
hero
gallery
Browser support
Universal.
Accessibility
Essential content is never hidden behind hover.
Includes a prefers-reduced-motion fallback.
Touch fallback: static on touch.
Keyboard accessible — the effect also triggers on focus-within.