I think you can create a workflow with When a condition is true, and using the condition page scrolling position is more than XXX (200 for example). Then use the subsequent actions to animate the elements you want.
Ya I tried that, but it only works if I put it as “once”, not “every time” it scrolls. If I do every time I think it tries to do it every time a scroll which doesn’t work.
yeah after some times indeed. Maybe trying to set the scrolling position not at zero but a bit more . (e.g. 10). As I don’t know with the “elastic” behaviour how the position is actually calculated.
Not really a bug, but I guess you get into a sort of limitation. The animation has not yet the time to complete than the other animation is already triggered…
Ya, if I set it to 0 it works. Hmm, I guess you are right, I might not be able to do that the way I want. Unless you have another work around to get it to work.
I don’t really see a workaround here, except lowering a bit the animation duration.
But, in a UX point of view, it’s always good to step back and keep in mind that the big majority of users won’t try to scroll quickly up and down to break the header behaviour !
Hey I know this was a while ago but thought this may help others who come across this topic.
I had a similar issue but found a quick workaround.
I wanted to have a transparent header at the top of my page (above an image) and then once the scrolling position got to around 600, a header with a white background replaced the transparent one.
I setup the same workflow that you were talking about but did the animation with a custom duration and then used the “add a pause” action and set that duration to a little bit longer than the duration of the first animation. Then did the next animation for the header with the white background to be displayed.
I found that this meant that the animations weren’t clashing as much.
You can also put in a bit on your event that makes it so that the animation only happens when the other header is visible.
It’s a bit of a compromise but hope it might help a bit.