How build a Spritesheet with pure CSS and JS in React js

I have a Spritesheet of a bottle of beer and when Scroll down the bottle turns I use the library react-responsive-spritesheet but

but it looks slow because I have other things that change in the Onscroll method. I've been thinking about replacing the spritesheet with pure css

something like putting all the images on top of each other and changing the z-index of each of them in such a way that you see a fluid turn.

Somebody now what is the best way for build this animation ?