My menu has the following CSS properties:
#header {
width: 100%;
position: fixed;
z-index: 9000;
overflow: auto;
}
With these CSS properties, the element #header
will always stay on top, regardless of scrolling. My goal is to add a bottom box shadow to this element #header
when scrolling up or down, and remove it when it returns to its default position at the top of the page.
I am open to any suggestions and recommendations.