Рет қаралды 9,440
Learn more advanced front-end and full-stack development at: www.fullstackacademy.com
requestAnimationFrame() or rAF is a method for running animations in the browser. It takes a callback as an argument and allows you to render new changes to the DOM based on the function that you invoke it with. In this tutorial, we talk about what is rAF, how to use it, and we give a live code example where we animate an SVG created with Raphael.js.
Watch this video to learn:
- What is rAF
- The rAF recipe
- Code examples using requestAnimationFrame()