Skip to content

Adds a small button after a certain scroll amount which allows the user to jump back up the page

Notifications You must be signed in to change notification settings

Matthew-Wise/Back-to-top

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Back to top

Back to top is exactly what it says on the tin, it adds a small button at the bottom right of the screen with an up arrow and smoothly scrolls the user back up. It only shows after a set distance has been scrolled.

###How to use

Include the plugin

<script src="js/backToTop.min.js"></script>

###Initialise the plugin

<script>
$(function(){
	$.backToTop();
});
</script>

###Options

Option Default Description
fromTop 50 The distance from the top that the arrow shows

About

Adds a small button after a certain scroll amount which allows the user to jump back up the page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published