0.0.2 • Published 7 years ago

goupjs v0.0.2

Weekly downloads
1
License
GPLv3
Repository
github
Last release
7 years ago

GoUp JS

Info

A simple JavaScript plugin that let users go back to the top of a web page.

This is a rewrite, using only vanilla JS, of the jQuery GoUp! plugin published here:
https://github.com/dnlnrs/jquery-goup

Options

NameDescriptionTypeDefault
locationOn which side the button will be shown ("left" or "right")Stringright
locationOffsetHow many pixel the button is distant from the edge of the screen, based on the location settedInteger20
bottomOffsetHow many pixel the button is distant from the bottom edge of the screenInteger10
containerSizeThe width and height of the button (minimum is 20)Integer40
containerRadiusRound container corners.Integer10
containerClassThe class name given to the button containerStringgoup-container
arrowClassThe class name given to the arrow containerStringgoup-arrow
containerColorThe color of the container (in hex format)String#000
arrowColorThe color of the arrow (in hex format)String#fff
triggerAfter how many scrolled down pixels the button must be shown (bypassed by alwaysVisible)Integer500
alwaysVisibleSet to true if u want the button to be always visible (bypass trigger)Booleanfalse
hideUnderWidthThe threshold of window width under which the button is permanently hiddenInteger500
zIndexSet the z-indexInteger1

License and Copyright

GoUp JS is licensed under the GPL license.

© 2016-2017 Daniele Lenares