Closed nrgnrg closed 4 years ago
When using smart objects adding backgroundSize: auto 100% gets compiled to background-size: 50% 100% in CSS which behaves very differently.
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
smartObject
this.mySmartObject.style.backgroundSize
When using smart objects adding backgroundSize: auto 100% gets compiled to background-size: 50% 100% in CSS which behaves very differently.