Skip to content
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

scss modules: reference @keyframes identifier in css variables #627

Open
florianloechle opened this issue Nov 14, 2023 · 1 comment
Open

Comments

@florianloechle
Copy link

Hi, I'm trying to get the following to work but with no luck:

.root {
  --animation-name: fade-in
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

Is it possible to get the hashed keyframe identifier in the css variable? It currently compiles to:

.root {
  --animation-name: fade-in
}

@keyframes FQ4BKa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

I'm using the version 1.22.1.

Help would be appreciated, thanks for this awesome project!

@karlnorling
Copy link

karlnorling commented Dec 12, 2023

I think this is the same issue as: #450 and being tracked here: css-modules/css-modules#390 is that correct @devongovett?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants