Image FXcssimagelab.com
Image
Studio fashion portrait in warm light

Hover the preview to see the tilt.

3D · 34 / 35

3D Tilt

The image tips into perspective on hover, catching the light like a card held at an angle.

Adjust
700px
8deg
10deg
450ms
Metadata
interaction
Hover · static fallback
browser
Universal
reduced motion
included
touch fallback
Static on touch
Edit the CSS above — the preview updates live.

About 3D Tilt

3D Tilt wraps the image in a perspective container and rotates it on the X/Y axes when hovered or focused, giving a tactile card-tilt effect. Tune --ifx-depth for the strength of the perspective, --ifx-tx and --ifx-ty for the rotation angles, and --ifx-duration for the ease-in speed. Requires the .ifx-card__img wrapper element. It rests flat on touch and under reduced-motion, and focus-within keeps it keyboard-accessible.

Use cases

  • portfolio
  • gallery
  • hero

Browser support

Universal. Give the figure surrounding space (a wrapper margin).

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.