I'm trying to do a basic animation for the Top Nav of my website. You know this thing when you scroll down a little bit, it switches the Top Nav to a smaller Top Nav. Nothing very fancy. But everytime I want to make it happen, what bothers me is: I always have to select a top div as the reference for triggering the interaction.
Isn't there any way to just select the Top Nav and tell him "If the user scrolls down for more than 100px, switch to the smaller scroll bar".
Because otherwise I'm forced to always have a rather small height div at the top of each page to trigger the interaction, and link it to the interaction... Over and over.