Hide/Show Sections clicking links

Hello
I’m making a webpage, and on the navbar I have a number of navigation items that link to different sections of the page.
What I want to do is, by clicking on a navigation item, only the corresponding section of the page becomes visible, hiding all the others.

How can I achieve this? I tried using the animation method, but I can’t select the sections for that, as they are outside the navbar block.