wishthis/node_modules/autoprefixer/lib/hacks/animation.js

18 lines
401 B
JavaScript
Raw Normal View History

2023-08-17 09:47:40 +00:00
let Declaration = require('../declaration')
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
class Animation extends Declaration {
2022-01-21 08:28:41 +00:00
/**
* Dont add prefixes for modern values.
*/
2023-08-17 09:47:40 +00:00
check(decl) {
return !decl.value.split(/\s+/).some(i => {
let lower = i.toLowerCase()
return lower === 'reverse' || lower === 'alternate-reverse'
})
}
}
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
Animation.names = ['animation', 'animation-direction']
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
module.exports = Animation