cssobj-plugin-keyframes
Make keyframes rules localized, and apply to animation and animation-name css props.
Install
npm install cssobj-plugin-keyframes
Usage
var lib =var obj ='@keyframes abc': {}'@keyframes !def': {} // adding ! to become `global` spacep: animation: '1s abc'div: animationName: '!def' // adding ! to become `global` space
result css:
@@
Caveat
animation-name
prop should at last position in animation shorthand, that simplified the parser, and more unified.