Created
November 11, 2016 11:35
-
-
Save futurist/f7658479865b626ab7af853e77217af2 to your computer and use it in GitHub Desktop.
cssobj-plugin-keyframes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const random = +new Date() | |
export default { | |
selector: function(sel) { | |
let match = /^\s*@keyframes (.*)$/i.exec(sel) | |
return match ? '@keyframes ' + match[1].trim() + random : sel | |
}, | |
value: function(val, key) { | |
return key=='animateName' ? val + random : val | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment