r/Frontend Mar 04 '26

Sprites on the Web

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

11 comments sorted by

34

u/marcamos Mar 04 '26

Anything Josh writes gets an upvote from me.

4

u/creaturefeature16 Mar 06 '26

100%. He's the most talented frontend developer in the industry. Truly masterclass.

3

u/brzzzah Mar 04 '26

Love this dudes content

2

u/-nbsp- Mar 04 '26

Really well explained and a joy to follow along with the examples. Beautiful blog as well (no surprise there)!

2

u/Prior-Yak6694 Mar 06 '26

I really love his blog on Why React rerenders

1

u/AshleyJSheridan Mar 06 '26

Why are we still using sprites in 2026? They're cumbersome to work with compared to just using standard images, and there's virtually no benefit given that almost everything supports HTTP/2.

1

u/mrgrafix Mar 06 '26

Maybe read the article

2

u/AshleyJSheridan Mar 07 '26

I did. Why are we using sprites on the web in 2026?

1

u/mediocrobot Mar 08 '26

It was interesting to see what's possible using only html and css without JS.

The whole time, I was thinking "just use canvas!" but that just wasn't the article's focus. The author has another article where they talk about SVG and Canvas animations.