I need to run a function once smooth scrolling to an element in my page is complete. JavaScript's function scrollTo
doesn't seem to support a fallback function though.
Is it no feasible then?
window.scrollTo({
top: elementLocation,
left: 0,
behavior: 'smooth'
})
myFunction();