Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 427 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 427 Bytes

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>