bannertime / generator-bannertime

Yeoman generator to help build and manage HTML5 banner campaigns.
https://bannertime.github.io/
58 stars 35 forks source link

feat: generate spritesheet from images in sprites folder #12

Closed pyramidium closed 8 years ago

pyramidium commented 8 years ago

This feature was requested on the greensock forums.

http://greensock.com/forums/topic/12734-stop-its-duncan-bannertime/#entry54799

joemidi commented 8 years ago

If using gulp.spritesmith Would you need to put in a sprite: true flag when you create the smartObject to let the backgroundPosition get picked up by the outputted CSS ?

pyramidium commented 8 years ago

Yeah I think that would work. Creating the spritesheet is fairly trivial. The thing that requires a bit of forethought is how each sprite is baked into a smart object.

joemidi commented 8 years ago

Yea, thats what I was thinking.

pyramidium commented 8 years ago

Going to close this one for now. Maybe we can look into this in a future release.