Sprites on the web. @joshwcomeau@front-end.social shows how to animate spritesheets in CSS within the <img> viewport: object-fit, object-position, and steps(jump-none) for clean frame-by-frame motion, plus when sprites beat GIFs, and when procedural animation is better.

https://www.joshwcomeau.com/animation/sprites/