Thursday, March 1, 2012

Do scroll of page to about certain pixel using jquery

You can do page scroll using jquery . Suppose on click event you want to do page scroll upto a certain points. For this use 
$('html,body').animate({scrollTop: $('#xyz').offset().top}, 2000);
give the id from which you want to display.
call it inside a function and call this function ocClick event.

No comments:

Post a Comment