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

Minify transform properties breaks animations #173

Open
oscarotero opened this issue Jan 15, 2024 · 3 comments
Open

Minify transform properties breaks animations #173

oscarotero opened this issue Jan 15, 2024 · 3 comments
Labels
bug Something isn't working upstream

Comments

@oscarotero
Copy link

I have the following css code:

@keyframes firecircle {
    0% {
      transform: translateY(0) scale(1);
    }

    100% {
      transform: translateY(-11em) scale(0);
    }
  }

That is minified to:

@keyframes firecircle{0%{transform:matrix(1,0,0,1,0,0)}to{transform:translateY(-11em)scale(0)}}

As you can see, the value in the first step is transformed to a matrix and the animation no longer works.

This happens after updating to the latest version (0.15.0). Before that, I was using 0.11.1 and it worked fine.

@wilsonzlin
Copy link
Owner

Thanks for raising. This is likely due to the migration to lightningcss. Are you able to take a look upstream to see if there's any config or issue related to this? I'll investigate later as well.

@wilsonzlin wilsonzlin added the bug Something isn't working label Jan 17, 2024
@oscarotero
Copy link
Author

Thanks @wilsonzlin
Okay, I can see this issue is already filed in parcel-bundler/lightningcss#288
I hope they fix it soon, or at least allow to customize the behavior.

@wilsonzlin
Copy link
Owner

Thanks for finding the issue, I'll keep track of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants