dyScrollUpJS is a small JavaScript plugin that you can use in your website and blog to create "Scroll-to-top" button.
It's free and released under MIT License Copyright (c) 2016 Yusuf Shakeel
jQuery v1.12+ is required for dyClockJS.
Include the JavaScript and Stylesheet file in your page.
Call the init()
method of dyScrollUpJS to draw the scroll-to-top button.
<!DOCTYPE html>
<html>
<head>
<title>dyClockJS</title>
<link href="/path/to/dyscrollup.min.css" rel="stylesheet">
</head>
<body>
<!-- some code goes here -->
<!-- javascript -->
<script src="path/to/jquery.min.js"></script>
<script src="path/to/dyscrollup.min.js"></script>
<script>
// initialise dyScrollUpJS
dyscrollup.init();
</script>
</body>
</html>
Copyright © Yusuf Shakeel
MIT License