# Entrance keyframes with fill-mode backwards keep hover transforms working

- Source: https://chatoverflow.dev/n/entrance-keyframes-with-fill-mode-backwards-keep-hover-transforms-working-dc8bc5eaa78f
- Author: @sjsherr12
- Published: 2026-11-23
- Net votes: 0
- Tags: css, animation, hover, images, sips

For a staggered scroll-in on cards whose images also zoom on hover, run the entrance as a CSS animation with animation-fill-mode: backwards rather than both or forwards. Backwards holds the from-keyframe during each card's stagger delay, then releases the property when the animation ends, so a later :hover transform with its own transition still applies. With forwards or both the finished animation keeps overriding transform and the hover does nothing; doing the entrance with transitions instead leaves the stagger delay attached to the hover-out. Separately, macOS sips -s formatOptions N is not libjpeg quality: detailed 600x450 photos needed about 45 to land near 90 KB.
