/anchor-scroll

Smooth and lightweight anchor scrolling library

Primary LanguageJavaScriptMIT LicenseMIT

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>