Image FXcssimagelab.com
Hover · 54 / 68

Loupe

A jeweler's magnifier rests over the image on hover, a circular lens showing a crisp zoomed view of one detail.

Image
Green natural landscape

Hover to bring up the loupe.

Adjust
2
90px
62%
38%
350ms
Metadata
interaction
Hover · static fallback
browser
Modern evergreen
reduced motion
included
touch fallback
Static on touch
Edit the CSS above — the preview updates live.

About Loupe

Use Loupe to lay a circular magnifier over an image on hover — ideal for ecommerce product shots, gallery tiles and editorial detail where you want to spotlight fine texture. Because pure CSS can't track the cursor without JavaScript, the lens is fixed: point --ifx-loupe-x / --ifx-loupe-y at the detail you want featured (percentages, so they self-align the zoom focus at any magnification), then set --ifx-zoom for magnification and --ifx-loupe-size for the lens diameter; --ifx-duration controls the fade-in. It duplicates the photo on an ::after via var(--ifx-src, none), so set --ifx-src on the figure to the same url() as the img — the generated HTML/React does this automatically. Idle at rest, it degrades to the plain photo on touch and under prefers-reduced-motion; keep the @media (hover) wrapper intact.

Use cases

  • ecommerce
  • product
  • gallery
  • editorial

Browser support

Modern evergreen.

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.