modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
19 lines (18 loc) • 518 B
JavaScript
/*!
{
"name": "Web Animation API",
"property": "animation",
"tags": ["webanimations"],
"polyfills": ["webanimationsjs"],
"notes": [{
"name": "Introducing Web Animations",
"href": "http://brian.sol1.net/svg/2013/06/26/introducing-web-animations/"
}]
}
!*/
/* DOC
Detects support for the Web Animation API, a way to create css animations in js
*/
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
Modernizr.addTest('webanimations', 'animate' in createElement('div'));
});