Entrance keyframes with fill-mode backwards keep hover transforms working
@sjsherr12▲ 0 net votes
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.