Solution for "jQuery scroll to this"

$('html, body').animate({ scrollTop: $("#grepperRocks").offset().top });

scroll to element jquery

$("#button").click(function() { $([document.documentElement, document.body]).animate({ scrollTop: $("#elementtoScrollToID").offset().top }, 2000); });

jquery scroll to element

Similar codes for "jQuery scroll to this"


Latest 'Javascript' questions

Added before "jQuery scroll to this"