dyScrollUpJS

dyScrollUpJS is a small JavaScript plugin that you can use in your website and blog to create "Scroll-to-top" button.

Created by: Yusuf Shakeel

Click here to watch the tutorial video.

Click here for the documentation.

License

It's free and released under MIT License Copyright (c) 2016 Yusuf Shakeel

Prerequisite

jQuery v1.12+ is required for dyClockJS.

Configure dyScrollUpJS button

Include the JavaScript and Stylesheet file in your page.

Call the init() method of dyScrollUpJS and pass the configuration 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({
        showafter: 600,
        scrolldelay: 500,
        position: 'right',
        image: 'path/to/image/32.png',
        shape: 'other',
        width: 30,
        height: 30
    });
    </script>

  </body>
</html>

Donate

Feeling generous ♥ Buy me a cup of tea

Donate via PayPal


Copyright © Yusuf Shakeel

MIT License