Help with personal port (hiding menu with css transitions & JS)

Help with personal port (hiding menu with css transitions & JS)
0.0 0

#1

Hello all, I am trying to implement a hide-on-scroll navigation menu with some JS and css transitions. I cannot figure out where I am going wrong exactly. Nav is currently offscreen and does not respond to scroll event. Any point in the right direction would be awesome.


#2

Works fine for me. Navbar hides when scrolling down and shows when scrolling up