
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
Edit the CSS above — the preview updates live.

Hover the preview to see the tilt.
The image tips into perspective on hover, catching the light like a card held at an angle.
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.
Universal. Give the figure surrounding space (a wrapper margin).