Skip to content

Here is the plugin to implement scroll to top function with simple installation. In future it will have more customising feature

License

Notifications You must be signed in to change notification settings

pplcallmesatz/scrollToTop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scrollToTop

Everyday scrolling on long pages can be a tiring experience specially on those sites which provides infinite scrolling (like facebook, twitter, Google+, etc). You will keep scrolling using mouse to see more and more updates and then when you want to go up to the top of the page, you might move your hand from your mouse to keyboard to search for Home key or you will drag the scroll bar to the top.

Insatallation Guide:

Basic Setup:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="scrollToTop.js"></script>

HTML Mockup:

<div class="scroll"></div>

Jquery:

$('.scroll').scrollToTop();

Jquery Settings:

$('.scroll').scrollToTop({
	color: "yellow",
	backgroundColor:"#fff",
	svg: {
		fill: "#C80C17"
	     },
	animation: {
		scrollPosition: "150",
		speed: "speed"
		}
});

Jquery settings properties:

  1. color
  2. backgroundColor
  3. svg:
    • fill
  4. animation:
    • scrollPosition
    • speed

working in progress, you may expect more customization sooner.

Thank you,

About

Here is the plugin to implement scroll to top function with simple installation. In future it will have more customising feature

https://swasatz.github.io/scrollToTop/

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published