isStandardSyntaxKeyframesName.js 334 B

1234567891011121314151617
  1. 'use strict';
  2. const hasInterpolation = require('./hasInterpolation');
  3. /**
  4. * Check whether a keyframes name is standard
  5. *
  6. * @param {string} keyframesName
  7. * @returns {boolean}
  8. */
  9. module.exports = function isStandardSyntaxKeyframesName(keyframesName) {
  10. if (hasInterpolation(keyframesName)) {
  11. return false;
  12. }
  13. return true;
  14. };