how to make my webpage scroll smoothly code example
Example 1: how to smooth scroll in javascript
window.scrollTo({ top: 900, behavior: 'smooth' })
Example 2: smooth scroll website
$('#element').foundation('_destroy');
window.scrollTo({ top: 900, behavior: 'smooth' })
$('#element').foundation('_destroy');