Implementing Smooth Scroll in JavaScript
TL;DR: Implementing smooth scroll in JavaScript involves querying the DOM for the target element, calculating initial and current positions, setting up an animation loop with requestAnimationFrame(), defining an easing function for smooth animation, ...
rohanc.hashnode.dev3 min read