Skip to content

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

@hsnaydd

Description

@hsnaydd

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;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions