123456789101112131415161718192021 |
- /*!
- {
- "name": "requestAnimationFrame",
- "property": "requestanimationframe",
- "aliases": ["raf"],
- "caniuse": "requestanimationframe",
- "tags": ["animation"],
- "authors": ["Addy Osmani"],
- "notes": [{
- "name": "W3C Spec",
- "href": "https://www.w3.org/TR/animation-timing/"
- }],
- "polyfills": ["raf"]
- }
- !*/
- /* DOC
- Detects support for the `window.requestAnimationFrame` API, for offloading animation repainting to the browser for optimized performance.
- */
- define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
- Modernizr.addTest('requestanimationframe', !!prefixed('requestAnimationFrame', window), {aliases: ['raf']});
- });
|