Skip to content

Latest commit

 

History

History
56 lines (48 loc) · 889 Bytes

README.md

File metadata and controls

56 lines (48 loc) · 889 Bytes

scrollup

simple plugin to go to page top

demo

usage

$ 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