animation.js 401 B

1234567891011121314151617
  1. let Declaration = require('../declaration')
  2. class Animation extends Declaration {
  3. /**
  4. * Don’t add prefixes for modern values.
  5. */
  6. check(decl) {
  7. return !decl.value.split(/\s+/).some(i => {
  8. let lower = i.toLowerCase()
  9. return lower === 'reverse' || lower === 'alternate-reverse'
  10. })
  11. }
  12. }
  13. Animation.names = ['animation', 'animation-direction']
  14. module.exports = Animation