Hi i stuck in a 2nd project. I need to create navi buttons which follows to diffrent divs.
I’m confused because in a previous lessons there were no informations about that or i missed something.
I’m trying to do that with js but i do not understand all of informations or code parts which i found in the internet.
It’s my pen: https://codepen.io/3dx2/pen/NXRgoE
Now its working but navi bar cover choosen divs when already scrolled to them.
I also don’t understand this part of code :
I dont need any effects like slow etc. just want to navigate between diffrent parts of page.
I think js part in a course was to poor compare to project requirements but it only my opinion.