Shimming webpage scroll with requestAnimationFrame
Jacob Truax

Some sites that I found amazing inside Awwwards, are using this method from shimming the scroll of their webpage. requestAnimationFrame is special function for your animation to work, basically you use loop to make changes every few milliseconds. So it's basic API for use with animation, whether that be DOM-based styling changes, canvas or WebGL.