react-spritesheet icon indicating copy to clipboard operation
react-spritesheet copied to clipboard

Please add an ability to scale sprites.

Open mkondel opened this issue 6 years ago • 0 comments

I would like to add a spritesheet and be able to scale it as an HTML <img>. The current version creates a <div> with the image data as a CSS background-image property. The 'height' and 'width' parameters for sprites will change what part of the spritesheet it will display. Scaling using CSS transform: scale(0.5) introduces strange behavior where the images will have thick padding. This is also what #6 seems to want too.

mkondel avatar Sep 16 '18 19:09 mkondel