We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There should probably be a scoped keyframe animation helper, for example:
var scopeStyles = require('scope-styles'); var scopeKeyframes = require('scoped-styles/keyframes'); var scopedAnimations = scopedKeyframes({ foo: { from: { width: 0 }, to: { width: '100px' } } }); scopedAnimations; // {foo: 'foo_a4yeR'} scopeStyles.getCss(scopedAnimations); /* @keyframes foo_a4yeR { from: { width: 0 }, to: { width: 100px } } */ var scoped = scopeStyles({ bar: { 'animationName': scopedAnimations.foo } });
Alternatively, this could be integrated into the main scopeStyles function:
var scopeStyles = require('scope-styles'); var scopedAnimations = scopeStyles({ '@keyframes foo': { from: { width: 0 }, to: { width: '100px' } } });
I might prefer the explicitness of the former approach, but the latter would be easier to support in the browserify transform/plugin.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There should probably be a scoped keyframe animation helper, for example:
Alternatively, this could be integrated into the main scopeStyles function:
I might prefer the explicitness of the former approach, but the latter would be easier to support in the browserify transform/plugin.
The text was updated successfully, but these errors were encountered: