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

[Bug]: keyframes added with injectGlobal only contain the last keyframe #492

Open
phaux opened this issue Oct 18, 2023 · 1 comment
Open
Labels
🐞 Bug Bug or Bug fixes

Comments

@phaux
Copy link

phaux commented Oct 18, 2023

Reproduction

https://stackblitz.com/edit/tw-in-js-twind-a1nbqx?file=index.js

injectGlobal`
.animate-test {
  animation: test 0.5s linear infinite;
}

@keyframes test {
  from, to {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
`;
<div class="animate-test">Test</div>

Describe the bug

Look at animate-test class and test animation in Chrome devtools.

Severity

annoyance

System Info

{
  "@twind/core": "https://esm.sh/@twind/core@1.1.3?dev",
  "@twind/preset-tailwind": "https://esm.sh/@twind/preset-tailwind@1.1.4?dev"
}


deno 1.37.2

Additional Information

No response

@phaux phaux added the 🐞 Bug Bug or Bug fixes label Oct 18, 2023
@stackblitz
Copy link

stackblitz bot commented Oct 18, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

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

No branches or pull requests

1 participant