Skip to content
/ climb Public

A jQuery project that displays an animated, scroll to top button on the page.

License

Notifications You must be signed in to change notification settings

1forh/climb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Climb.js

...it goes up.

Climb.js adds a fixed button to the document, fading in and out at certain scroll heights, that will return a user to the top of the current page when clicked.

Download repository and add climb.min.js to the bottom of the document. Modfiy styles within climb_init();.

<button id="climb"></button>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="scripts/climb.min.js"></script>

<script>
  // icon color, background color, side of window, x-coordinate, y-coordinate, window height to display, animation speed
  climb_init('white', '#3F51B5', 'right', 0, 100, 800, 500);
</script>

About

A jQuery project that displays an animated, scroll to top button on the page.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published