Good day. I do not know if the question I put is something that you will understand easily, so I will explain.
I was thinking, when we want a menu to be hidden or displayed according to the scrolling scroll up or down, we can do it according to this logic:
If scroll-top is greater than a certain height then show me the menu, but if the scroll-top is less than the determined height then make the menu remain hidden.
Good.
This menu is made and designed in a html and css code, which is inserted in the same page where it is used.
But the question is how to make this menu created and dynamically recreated as scroll down and upload without this code (html) is inserted on the page.
Hopefully you can understand what I want. That occurred to me today.