Using code to indicate Scroll UP / DOWN...

Hi guys,

So I’m wondering, can we use code to trigger a condition based on if we are scrolling UP or DOWN?

I know that there is windowSizeInfo.scroll can we use something like this to take it’s relative position and then reference if the position increases do A, if it decreases do B.

This would be really cool for introducing a header hide fade on scroll down and show fade on scroll up.

Calum

Hi,
You can use the . getBouncingRect () function to get the information about the scroll.

However, you can also do the described functionality for your header using an example here .