DEV Community

Discussion on: Hide NavBar as Scroll down, in less than 10 lines of javascript;

hasnaindev profile image
Muhammad Hasnain • Edited

I agree with Areeb. You could write an entire library just to handle the navigation bar and add more complexity but I don't think that's the point. Most of the posts here are written by beginners, for beginners.

jonrandy profile image
Jon Randy

Well, you could add one or two lines to stop it disappearing when you scroll as little as one pixel down, which is just plain irritating for the the user