scroll-animation-js

1.0.8 • Public • Published

ScrollAnimation

Scroll animation is a function to navigate within the page

How to use

Adding the script.

<script src="https://cdn.jsdelivr.net/npm/scroll-animation-js/dist/scroll-animation.min.js" ></script>

Or install

npm i --save scroll-animation-js

and using with browserify

Using

scrollAnimation(listElements, delay[, addingHeight, scrollContainerElement]);

Parameters

listElements : Array of "li" elements with "a" like first children.

delay : The time in milliseconds to navigate to the link.

Optional

addingHeight : Extra height if some element does not allow to see the information.

scrollContainerElement : The element with the scroll, by defect is the document.

Readme

Keywords

Package Sidebar

Install

npm i scroll-animation-js

Weekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

8.29 kB

Total Files

6

Last publish

Collaborators

  • ryuunofire