webanimations.js 556 B

12345678910111213141516171819
  1. /*!
  2. {
  3. "name": "Web Animation API",
  4. "property": "webanimations",
  5. "caniuse": "web-animation",
  6. "tags": ["webanimations"],
  7. "polyfills": ["webanimationsjs"],
  8. "notes": [{
  9. "name": "Introducing Web Animations",
  10. "href": "https://birtles.wordpress.com/2013/06/26/introducing-web-animations/"
  11. }]
  12. }
  13. !*/
  14. /* DOC
  15. Detects support for the Web Animation API, a way to create css animations in js
  16. */
  17. define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
  18. Modernizr.addTest('webanimations', 'animate' in createElement('div'));
  19. });