requestAnimationFrame()
Widely available since 2018-01-29
The requestAnimationFrame()
method schedules a function that runs before the next repaint. You can use it to animate content with JavaScript.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 24 Released on 2013-01-10
- Chrome Android 25 Released on 2013-02-27
- Edge 12 Released on 2015-07-29
- Firefox 23 Released on 2013-08-06
- Firefox for Android 23 Released on 2013-08-06
- Safari 7 Released on 2013-10-22
- Safari on iOS 7 Released on 2013-09-18
Specifications
- HTML Standard (#animation-frames), from HTML Workstream (WHATWG).