Hi guys,
Congratulations on ScrollTrigger. I'm afraid I haven't used GSAP for several years (since my flash days!), but I'm enjoying getting back into it...
This could totally be a 'me' thing, but I expected the `snap` property to affect the animation only, without affecting the scroll position of the page (the demos cleared this up, but it's not entirely obvious from the documentation).
My use-case is simple, and possibly quite common...
I am only animating a small element which scrolls normally with the page at all times.
I have a timeline with an 'in' and an 'out' animation, to show and hide the object while the page scrolls.
I want the animation to snap to [0, 0.5, 1] – so the beginning, middle and end of the timeline, depending on the scroll position.
However, snapping scrolls the page – which I absolutely do not want. This would make sense if I had set `scrub:true` (or any other value), but I think the only way for me to achieve 'in' and 'out' animations like this, is to split them into two separate scroll triggers – and then I'm worried they could interfere with each other.
Does that make sense? I guess my non-breaking change request would be to add a property to the snap parameters to achieve this?
Of course, I may have totally missed something...
Cheers,
Steve