Forum Discussion
GSAP, x-y transformation in the Modern Player
In GSAP there is now a helper function 'getProperty'.
It probably does the same as my 'get_XYPos' and for sure is better tested in all circumstances.
You might wanna replace it with that.var myElement = document.querySelector("[data-acc-text='someAccName']");
var elXPos = gsap.getProperty(myElement, "x");
var elYPos = gsap.getProperty(myElement, "y");
console.log("x: "+elXPos+" | y: "+elYPos);
- giovannidibe91410 months agoCommunity Member
A curious thing happens with the new getProperty(...) suggested as alternative to getXYPos(). It doesn't give the same results. A slight difference but (and that's the worst) not constant. It makes the animation slowly drift away...does it occur to anyone else? Once again thanks Math, you're an absolute reference.
- MathNotermans-910 months agoCommunity Member
Have not noticed that before. In the latest Storyline version ? Is there maybe some other script actively moving the element pixel by pixel ? Do share a sample...easier to debug...