Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 681 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 681 Bytes

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