Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).scroll(function() {
- var wintop = $(window).scrollTop(), docheight =
- $('html').height(), winheight = $(window).height();
- var scrolled = (wintop/(docheight-winheight))*100;
- $('.scroll-line').css('width', (scrolled + '%'));
- });
Add Comment
Please, Sign In to add comment