I am using BS ScrollSpy & wanted to add/remove a class to each section that is currently in view. Like "active" or "in-view" or similar. Is this possible using just the BS JS?
One at a time only.
<section id="welcome" class="section-section">
<section id="welcome" class="section-section in-view">
I have created the small snippet with this you can add
.activeclass to current section and remove from other sections.Check Demo HERE
HTML:
JS:
I hope it helps you