I have been looking for a script that allows for a menu to show up when a user scrolls down the page, and when the user scrolls back to the top the menu disappears. I haven’t had any luck finding anything. I have tried sticky headers, but that’s not the effect I am looking for.
Sorry if this type of question isn’t allowed.
Sometime ago I used something like the below, you should be able to modify it for what you need. It originally was like “scroll back to the too button” but the functionality of hiding and showing an element depending on how much you have scrolled should be the same.