-
-
Save HendrikRoth/46834e6b9c2cd7fb482d543ac99200dd 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