Transitions & Transforms: Lift on Hover

intermediate
By FrontendAtlas Editorial · Updated Oct 5, 2026
Create a hover lift effect with transform and transition. Combine a slight translate/scale with a deeper box-shadow to simulate elevation, and avoid layout-jank by animating only transform/opacity. Include a reduced-motion fallback.

Solution idea

Use transition to animate transform and box-shadow, then apply a small upward translate (and optional scale) on hover. This creates a smooth, GPU-friendly lift effect without triggering reflow. Add a prefers-reduced-motion rule to disable the animation for users who prefer less motion.