SHARE
TWEET

Untitled

a guest Dec 16th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(window).scroll(function() {
  2.   var wintop = $(window).scrollTop(), docheight =
  3.  
  4.       $('html').height(), winheight = $(window).height();
  5.   var scrolled = (wintop/(docheight-winheight))*100;
  6.  
  7.   $('.scroll-line').css('width', (scrolled + '%'));
  8. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top