bannertime / generator-bannertime

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

CSS backgroundSize: auto 100% becomes to background-size: 50% 100% #125

Closed nrgnrg closed 4 years ago

nrgnrg commented 5 years ago

When using smart objects adding backgroundSize: auto 100% gets compiled to background-size: 50% 100% in CSS which behaves very differently.

joemidi commented 5 years ago

Hi, the smartObject set methods are just a shorthand for GSAP TweenMax, and it prefers numbers over strings. I would use vanilla JS to set it i.e.: this.mySmartObject.style.backgroundSize