Hi, guys, many thanks for the such amazing tool!
I'm trying to figure out how to work with gsap ScrollTrigger, and couldn't find an answer for couple things:
1. When I'm using scrollTrigger and set duration to zero (0), the animation runs immediately when the page loads. However, if I change duration to any positive value (1), it works as expected. Why's that happening? I can set duration to 0.0001 for example, which works well, but I want to understand
(On the demo, the square should be green and half-transparent from the initial)
2. On the second demo, the animation plays well for the first time, however if I scroll bottom and back, next changes happens immediately with blink (I tried to set 'once' param to 'true' but it didn't help). Why's that and what's the correct way to achieve animation transition for the second run?
Thanks in advance!