Reputation: 353
I was given a sprite sheet generated by TexturePacker + css files by a client to create an animation for a react site:
The CSS files look like this:
.sprite {display:inline-block; overflow:hidden; background-repeat: no-repeat;background-image:url(Sprite1.png);}
.Position1_0000 {width:10px; height:10px; background-position: -0px -0px}
.Position1_0001 {width:25px; height:120px; background-position: -10px -0px}
The sprite sheets are 2 PNG files and the sprites are all different sizes. My goal is to add this animation to existing react site. I couldn't find any existing libraries that work with different size sprites.
My questions:
Upvotes: 2
Views: 496