Smooth scroll to an element


JavaScript • JQuery


$([document.documentElement, document.body]).animate({
	scrollTop: $('#ABC123').offset().top
}, 2000);

Written by fbrefere001

Posted by fbrefere001 on Monday August 12, 2024