- Overview
- Documents
Scrollgress is a simple, lightweight jQuery plugin used to display a progress bar at the top of the page that fills up as the user scrolls.
Source: github.com
Aug 21, 2014 in Scroll 3725 views
Scrollgress is a simple, lightweight jQuery plugin used to display a progress bar at the top of the page that fills up as the user scrolls.
Source: github.com
1. INCLUDE JS FILES
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="/js/plugins/scrollgress.js"></script>
2. HTML
<div class="wrapper"> <h1>Lorem Ipsum</h1> ... </div>
3. JAVASCRIPT
$('.wrapper').scrollgress({ success: function() { console.log('Scrollgress has been initiated.'); } });
4. OPTIONS
Example:
$(function() { $('.post').scrollgress({ height: '10px', color: '#990000', success: function() { console.log('Scrollgress has been initiated.'); } }); });
Tagged with:
scrollgress
jquery plugin
progress bar
user scrolls
fills up
scroll
scrolls the page
scrolls element
display a progress
Related Articles