-
-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
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
creating a animation in :global scope animation's name is translated to local name in the keyframes #759
Comments
Same problem here, did you find a workaround? |
did something like
so you have a global class and everything inside is local |
Problem on |
The fix I found is to do: :global {
.shake {
animation: example 3s linear;
}
}
@keyframes :global(example) {
0% {background-color: red;}
100% {background-color: green;}
} In general, any |
For reference, I found this issue while debugging and documented several approaches here: https://gravitydept.com/blog/keyframe-animations-in-css-modules |
@brendanfalkowski please open new issue with reproducible repo |
"css-loader": "^1.0.0",
"css-modules": "^0.3.0",
Do you want to request a feature or report a bug?
bug
What is the current behavior?
creating a animation in :global scope animation's name is translated to local name in the keyframes
If the current behavior is a bug, please provide the steps to reproduce.
compiling this css:
results in (files name is _core)
What is the expected behavior?
should result in
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as your webpack version, Node.js version and Operating System.
using a mac OSX
The text was updated successfully, but these errors were encountered: