×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: chokri tliche
Added: Feb 12, 2013 2:10 PM
Modified: Feb 12, 2013 2:12 PM
Views: 22
force page to scroll to element offset after in event handler
http://lions-mark.com/jquery/scrollTo/
  1. $('body').animate({scrollTop: $('p#status').offset().top - 50}, 500, 'swing');