Skip to content

kudago/scrollup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple plugin to go to page top

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published