+ 1

How to make a navbar which is static but becomes fixed top when scrolled down. And again static when on top

I have tried but failed I am new to Java script and jQuery

3rd May 2017, 4:31 AM
Rayian Mahi
Rayian Mahi - avatar
2 Answers
+ 2
if I understands, you can achieve it with this code in css: position: fixed; top: 0; left: 0; :)
3rd May 2017, 4:40 AM
Nikola Stojiljkovic
Nikola Stojiljkovic - avatar
+ 1
I understand CSS and JavaScript both but I want to learn the scroll function of JavaScript
3rd May 2017, 8:50 AM
Rayian Mahi
Rayian Mahi - avatar