Skip to content

alexmorris/anchor-scroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Anchor scrolling library

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

Usage

  1. Insert scroll.js anywhere on your page.
  2. Add a scroll class on your links and the correct ids and 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.js></script>

About

Smooth & lightweight anchor scrolling lib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%