Anton Styopin Anton Styopin - 2 months ago 30
CSS Question

Bootstrap Scrolling Nav Issue

i have downloaded a scrolling nav bootstrap template to build up an one-pager. The scrolling works fine and is going smooth to the section i click on. My problem is, when i add another section he jumps onclick to the section, but doesnt animate the scroll. all other menu points are animating the scroll but my new section doesn't. Anybody know the problem?

Here is the link where i downloaded the template.
https://startbootstrap.com/template-overviews/scrolling-nav/

Answer

Make sure you add page-scroll to the link since that triggers the animation.

<li>
     <a class="page-scroll" href="#more">More</a>
</li>

Demo http://www.codeply.com/go/rNPxL48Tae