I’m trying to make a simple animation with the element trigger “while scrolling in view”.
It suppose to work like this: http://scroll-in-view-working.webflow.io/
When the red section starts entering the viewport the yellow element starts animating from y-100px y to y+100px. When the red section is in the middle of the viewport the yellow element is in it original state at the middle of the section.
My problem is: http://scroll-in-view-not-working.webflow.io/
When the red section is to close to the top, this animation starts too fast and is over long before it should.
What to do? Is this a bug?