jquerry scrolldown pixel code example

Example: jquery scroll down 1 pixel

// try this code to scroll down 1px
/*
* - the code pretty much just uses .scrollTop() to get the work done.
* - if you would like to scroll down more than 1px, simply increase the
*	integer value (located close to the end of the code).
*/

jQuery(window).scrollTop(jQuery(window).scrollTop()+1);

// OR (the shorthand version):

$(window).scrollTop($(window).scrollTop()+1);

/*
* - NOTE: if you want this to fire after the document has loaded,
*	then dont forget to wrap the code in $(document).ready() function:
*/

jQuery(document).ready(
  function()
  {
   	jQuery(window).scrollTop(jQuery(window).scrollTop()+1); 
  }
);

// Happy coding, my homies! <3