You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

4 years ago
  1. "use strict";
  2. function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
  3. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
  4. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  5. var Declaration = require('../declaration');
  6. var Animation =
  7. /*#__PURE__*/
  8. function (_Declaration) {
  9. _inheritsLoose(Animation, _Declaration);
  10. function Animation() {
  11. return _Declaration.apply(this, arguments) || this;
  12. }
  13. var _proto = Animation.prototype;
  14. /**
  15. * Dont add prefixes for modern values.
  16. */
  17. _proto.check = function check(decl) {
  18. return !decl.value.split(/\s+/).some(function (i) {
  19. var lower = i.toLowerCase();
  20. return lower === 'reverse' || lower === 'alternate-reverse';
  21. });
  22. };
  23. return Animation;
  24. }(Declaration);
  25. _defineProperty(Animation, "names", ['animation', 'animation-direction']);
  26. module.exports = Animation;