ScrollTrigger.create({
scroller: document.documentElement,
start: 0,
end: () => this.scrollHeight,
invalidateOnRefresh: true,
scrub: true,
onUpdate: self => {
console.log(self.progress + "////");
}
})
after resize, why can't scroll to the max value ?
function-base value and invalidateOnRefresh I have set.
thanks
gsap version 3.7.1
I want the div move to the end of the browser and repeat.
but when resize the browser how to change the y props in the same time?
y: () => innerWidth doesn't work?
thanks!
I want to rotate div 90deg per second, and need use SteppedEase, not snap or other way.
but i fond that it doesn't work!
but it worked well at x, y , scale, alpha , but only rotation. why?
and how to set the same duration for each keyframe , or set the total amount for the whole tween?
i think the version (eg 3.6.1) is better here. it's breeze.