Hi everyone,
I'm trying to get the value of the translate3d used on the element a ScrollTrigger is active on using the onUpdate method. I know you can get the scroll progress value but I don't know how to get the translate3d value.
ScrollTrigger.create({
trigger: '.trigger',
pin: true,
start: 'center center',
end: '+=300',
onUpdate({ progress, scroll }) {
console.log(progress);
console.log(scroll());
// How do you get the translate3d (x, y) values?
}
});