Hi,
I am new to GreenSock and trying to use _gsTransform . But I do not understand its operation and how the used ...
Someone can explain to me ? I searched everywhere but I found nothing about it. Please help me !
When you tween any elements, GSAP attaches _gsTransform to that element's DOM object. So you can access all the current values by using _gsTransform. For example,
var elem = document.getElementById('box');
TweenMax.to(elem, 1, {xPercent: 100});
console.log(elem._gsTransform.xPercent);
Will return current xPercent for that element. It can be very useful to access values of elements so you can calculate anything you want.
If you are using jQuery,
var $