I have something that's been kinda bugging me for a bit when tweening an element's css scale property with js gsap. so i figured i would ask about it since i haven't been able to find anything bout this topic on the forum here.
let's say i tween something that changes the transform matrix of an element like:
TweenLite.to( elem, 0.5, { ease: Back.easeIn, css: { scale: 0 }});
and then say when i tween the element back in with:
TweenLite.to( elem, 0.5, { ease: Back.easeOut, css: { scale: 1 }});
the transform css property will stay on the element ( transform: matrix(0, 0, 0, 0, 0, 0); ) even if the scale was set back to 1.0. is there an alternative solution for scaling elements that will remove the transform automatically afterwards? or is the only solution going to be using the onComplete callback to remove the transform myself after it's done?
thanks!