• Stars
    star
    363
  • Rank 117,374 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Smooth and lightweight anchor scrolling library

Anchor scrolling library

Simple 1KB plugin for animating anchor links. View demo.

Usage

  1. Insert scroll.min.js in your page.
  2. Add a scroll class to your anchors.
<a class=scroll href=#intro>Intro</a>
<a class=scroll href=#about>About</a>

<section id=intro> … </section>
<section id=about> … </section>

<script src=scroll.min.js></script>