ScrollSpy not working

Hi, I am tyrying to build my portfolio, but I am not able to make ScrollSpy work.
I have tried to follow this tutorial but it didn’t work for me. I’ve also checked the console but there are not related errors.
You can check my code here.

I really appreciate your help

I just checked it and it was working alright. Maybe you wanted it to do something else but scroll-spy is doing its job.

I want it to highlight the current section at the navbar, but I cannot see it through my browser, while it is working on the example project

bacically scrollspy connects your nav bar to the place you want it to connect to. What it means is that if you click on contacts, it scrolls to the contact session.

According to W3Schools

The Scrollspy plugin is used to automatically update links in a navigation list based on scroll position.

And that’s what I want it to do. If you see the example given, navbar items style changes when scrolling down along the page, and that’s what I want my page to do.

If you check the example project, you can see that each link at the navbar changes (background becames white) when scrolling down to the related section.

You’re missing class="nav nav-tabs" role="tablist" from the ul



1 Like

That solved my problem. Thank you so much for your time and help :slight_smile:

1 Like