Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scroll position

$(window).scroll(function() {
	var $height = $(window).scrollTop();
  if($height > 50) {
		//do something
	} else {
		//do something
	}
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scroll #position
ADD COMMENT
Topic
Name
4+1 =