I am trying to create a horizontal top menu that disappears as the user scrolls down the page. I have got part-way there - it does disappear, but before it disappears it flashes on and off. I’m jiggered if I can see why.
Here’s my codepen:
When I’ve got that working, I would like the menu to scroll out of view rather than just vanish. I realise that that won’t be done using the