animescroll

1.0.1 • Public • Published

AnimeScroll

Simple native scrollTo without dependencies.

Usage

Include in the .html file

<script src="dist/animescroll.js"></script>
animeScroll(to, duration, cb);

Scroll to [data-id="2"] elem.

animeScroll.to(document.querySelector(`[data-id="2"]`).offsetTop);

Source

Source

Package Sidebar

Install

npm i animescroll

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

10.1 kB

Total Files

10

Last publish

Collaborators

  • icetee