1kb-anchor-scroll 中文文档教程
Anchor scrolling library
用于动画锚链接的简单 1KB 插件。 观看演示。
Usage
- Insert
scroll.min.js
in your page. - 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>
Anchor scrolling library
Simple 1KB plugin for animating anchor links. View demo.
Usage
- Insert
scroll.min.js
in your page. - 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>