Answer the question
In order to leave comments, you need to log in
What can I do so that when scrolling the page on certain elements, a class is added and removed?
The site has a script for page-by-page scrolling fullPage.
Made side navigation like they have on the site. https://alvarotrigo.com/fullPage/
Tell me the jQuery code that will add the 'active' class to the 'a' element when scrolling the page
<div id="nav">
<ul>
<li><a href="#slide1" class="active"></a></li>
<li><a href="#slide2"></a></li>
<li><a href="#slide3"></a></li>
<li><a href="#slide4"></a></li>
<li><a href="#slide5"></a></li>
</ul>
</div>
Answer the question
In order to leave comments, you need to log in
read the doc, see examples, https://alvarotrigo.com/fullPage/examples/continuo...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question