jQuery - scroll to specific element

0 votes
157 views
added Feb 13, 2019 in jQuery by LC Marshal Captain (25,770 points)
$('html, body').animate({
    scrollTop: ($('.box').offset().top)
},200);

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...