Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Latest commit

 

History

History
56 lines (48 loc) · 889 Bytes

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