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.