Check out the code I've provided at this link: https://jsfiddle.net/kbvwpo76/
I'm trying to implement a fixed menu at the top of my page with an effect using hsla
.
You can see an example with random content in the link above.
The problem I'm facing is that the content starts right behind the menu. What I actually want is for the content to start below the menu, and when scrolling down, I'd like the menu to remain fixed while the content disappears behind it.
Can you advise on what changes need to be made in the code to achieve this?