browsernizr
Version:
Modernizr wrapper for use with browserify
21 lines (19 loc) • 585 B
JavaScript
/*!
{
"name": "Web Animation API",
"property": "webanimations",
"caniuse": "web-animation",
"tags": ["webanimations"],
"polyfills": ["webanimationsjs"],
"notes": [{
"name": "Introducing Web Animations",
"href": "https://birtles.wordpress.com/2013/06/26/introducing-web-animations/"
}]
}
!*/
/* DOC
Detects support for the Web Animation API, a way to create css animations in js
*/
var Modernizr = require('./../lib/Modernizr.js');
var createElement = require('./../lib/createElement.js');
Modernizr.addTest('webanimations', 'animate' in createElement('div'));