This time I will share jQuery Plugin and tutorial about Easy Configurable Scroll To Top Back Button Plugin – illbeback, hope it will help you in programming stack.
I’ll Be Back is a simple yet highly customizable jQuery plugin used for creating a scroll to top button to enhance navigation experience on webpage with long content.
How to use it:
1. Download and put the jQuery illbeback plugin’s script after jQuery library.
1 |
< script src = "//code.jquery.com/jquery-3.0.0.min.js" ></ script > |
2 |
< script src = "illbeback.min.js" ></ script > |
2. Create an anchor link for the scroll to top button.
1 |
<a href= "" id= "scroll-to-top" ></a> |
3. Initialize the plugin to generate a default scroll to top button that stays at the bottom right of the webpage when you scroll down.
1 |
$( "#scroll-to-top" ).illBeBack(); |
4. Config the scroll to top button with the following options.
01 |
$( "#scroll-to-top" ).illBeBack({ |
28 |
bgColor : 'rgba(30, 30, 30, 0.4)' , |
29 |
hoverBgColor : 'rgba(30, 30, 30, 0.8)' , |
30 |
bgPosition : '50% 50%' , |
32 |
bgRepeat : 'no-repeat' , |
33 |
bgImage : "url("data:image/png;base64
source : jqueryscript.net
|