Image FXcssimagelab.com
Hover · 43 / 56

Rack Focus

The photo rests softly out of focus and snaps sharp on hover, like a lens racking onto its subject.

Image
Green natural landscape

Hover the preview to pull the photo into sharp focus.

Adjust
6px
0.85
550ms
Metadata
interaction
Hover · static fallback
browser
Modern evergreen
reduced motion
included
touch fallback
Sharp on touch
Edit the CSS above — the preview updates live.

About Rack Focus

Rack Focus rests the photo gently out of focus and snaps it sharp on hover or keyboard focus, like a camera lens racking onto its subject — the one purely-optical hover gesture. The ENTIRE effect lives inside @media (hover: hover) and (pointer: fine), so touch devices (which can't hover) always see the sharp photo, never a stuck blur. Tune --ifx-rf-blur (resting defocus), --ifx-rf-sat (resting saturation dip) and --ifx-duration / --ifx-ease for the focus-pull speed. It honors prefers-reduced-motion; keep the @media (hover) wrapper and the :focus-within selector intact.

Use cases

  • portfolio
  • ecommerce
  • gallery
  • editorial

Browser support

Modern evergreen.

Accessibility

  • Essential content is never hidden behind hover.
  • Includes a prefers-reduced-motion fallback.
  • Touch fallback: sharp on touch.
  • Keyboard accessible — the effect also triggers on focus-within.