M
M
Maxim Kononov2018-03-22 15:46:44
css
Maxim Kononov, 2018-03-22 15:46:44

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

1 answer(s)
V
Vladislav Lyskov, 2018-03-22
@HovardRork

read the doc, see examples, https://alvarotrigo.com/fullPage/examples/continuo...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question