cssobj-plugin-keyframes
Version:
Make keyframes rules localized, and apply to animation and animation-name css props.
2 lines • 590 B
JavaScript
var cssobj_plugin_keyframes=function(){"use strict";function r(r){r=r||{};var n=r.space=r.space||t("ani_");return{selector:function(r,t){var e=/^\s*@keyframes\s+(.*)$/i.exec(t.groupText);return e&&(t.groupText="@keyframes "+("!"==e[1].charAt(0)?e[1].slice(1):e[1].trim()+n)),r},value:function(r,t){return["animationName","animation"].indexOf(t)>-1?"!"==r.charAt(0)?r.slice(1):r.trim()+n:r}}}var t=function(){var r=0;return function(t){return r++,"_"+(t||"")+Math.floor(Math.random()*Math.pow(2,32)).toString(36)+r+"_"}}();return r}();
//# sourceMappingURL=cssobj-plugin-keyframes.min.js.map