Use 'NProgress.js' library for nanoscopic progress bar.
NProgress.start() — shows the progress bar
NProgress.set(0.4) — sets a percentage
NProgress.inc() — increments by a little
NProgress.done() — completes the progress
Demo
NProgress.start() — shows the progress bar
NProgress.set(0.4) — sets a percentage
NProgress.inc() — increments by a little
NProgress.done() — completes the progress
<script>Final code and demo is here
NProgress.start();
$(document).ready(function ()
{
NProgress.done();
});
</script>
Demo
No comments:
Post a Comment