animations.js 705 B

1234567891011121314151617181920
  1. /*!
  2. {
  3. "name": "CSS Animations",
  4. "property": "cssanimations",
  5. "caniuse": "css-animation",
  6. "polyfills": ["transformie", "csssandpaper"],
  7. "tags": ["css"],
  8. "warnings": ["Android < 4 will pass this test, but can only animate a single property at a time"],
  9. "notes": [{
  10. "name": "Article: 'Dispelling the Android CSS animation myths'",
  11. "href": "https://web.archive.org/web/20180602074607/https://daneden.me/2011/12/14/putting-up-with-androids-bullshit/"
  12. }]
  13. }
  14. !*/
  15. /* DOC
  16. Detects whether or not elements can be animated using CSS
  17. */
  18. define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
  19. Modernizr.addTest('cssanimations', testAllProps('animationName', 'a', true));
  20. });