simple plugin to go to page top
$ npm install scrollup
create new element with default options:
new ScrollUp()
or
var el = document.querySelector('.myelem') new ScrollUp(el,{ //options })
#options
options | default | description |
---|---|---|
scrollDistance |
900 |
define when scrollup appear |
animateScrollDuration |
500 |
|
ease |
"out-cube" |
set ease effect (view for more: ease) |
appendEl |
body |
where scroll el append |