Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PurgeCss does not recognize keyframes that used as CSS custom properties (variables) value #478

Open
hsnaydd opened this issue Sep 14, 2020 · 1 comment
Labels

Comments

@hsnaydd
Copy link

hsnaydd commented Sep 14, 2020

PurgeCss deletes the keyframe even though it is used;

.component {
  animation: var(--component-animation)
}

.component--animated {
  --component-animation: fadeIn 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@Ffloriel Ffloriel added the bug label Sep 20, 2020
@lemmon
Copy link

lemmon commented Nov 26, 2020

This might be related to this #518 issue.

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

No branches or pull requests

3 participants