Scroll to Top

Scroll Spy

Navigate within the document on page smoothly by using this plugin.

SITEMAP Documentation / Js Plugins / Scroll Spy

Demo

Click link 01, link 02, .. Buttons below.

Code copy

            <a class="scrollspy" data-target="#id-of-target">go to link 1</a>
            <a class="scrollspy" data-target=".class-of-target">go to link 2</a>
            <div id="id-of-target"> 
                <p>This is the example that could be used with id</p>
            </div>
            <div class="class-of-target"> 
                <p>This is the example that could be used with class</p>
            </div>
            <script>$(".scrollspy").scrollSpy();</script>

Feedback