scrollTo()
Scrolls an element into view with smooth animation.
scrollTo(options)
scrollTo(options)$('#section').scrollTo();Parameters:
Usage:
$('#section').scrollTo({ behavior: 'smooth', block: 'center' });$('#section').scrollTo();Last updated