Chrome Extension

Scroll to a div or element using JQuery

$('html, body').animate({
    scrollTop: $("#div_id").offset().top
}, 2000);
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

You can use this code to scroll to a div or an HTML element with animation using JQuery.

Was this helpful?
Join Devsheet Ask a Question