scrollto-animation

1.0.2 • Public • Published

Install

npm i scrollto-animation --save

Usage

import  scrollTo from "scrollto-animation"

scrollTo (Target,duration,animationStyle,callback);

Target : element where to scroll duration: duration of animation in milli seconds animationStyle: animation style one of the below callback: its optional function you want to execute after animation complete.


    linear
    easeInQuad
    easeOutQuad
    easeInOutQuad
    easeInCubic
    easeOutCubic
    easeInOutCubic
    easeInQuart
    easeOutQuart
    easeInOutQuart
    easeInQuint
    easeOutQuint
    easeInOutQuint
 scrollTo(document.getElementById("id"),300,"easeOutQuad");

Package Sidebar

Install

npm i scrollto-animation

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.22 kB

Total Files

3

Last publish

Collaborators

  • vijay367