keyframe animation not working
See original GitHub issueanimate-spin
generates this code:
@keyframes svelte-1fil0v3-spin {
:global(.windi-sdy900) {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transform: rotate(360deg);
transform: rotate(360deg)
}
}
Which doesn’t work. Real tailwind generates this instead:
@keyframes spin {
to {
transform: rotate(1turn);
}
}
Not sure if this is svelte specific, but I reproduced the issue with the rollup example in this repo: https://github.com/lawrencecchen/svelte-windicss-preprocess/tree/main/example/rollup
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
CSS Animations Not Working? Try These Fixes - HubSpot Blog
In CSS animations, the @keyframes rule defines how the animation looks, or, more specifically, which element styles change and when. Without ...
Read more >CSS @keyframes not working in Chrome - Stack Overflow
I have tried to use @-webkit-keyframes but the text doesn't move either in Chrome. It works fine with -webkit-keyframes and -webkit-animation .
Read more >Keyframes not working the way it's intended - HTML & CSS
I don't understand this psuedo element , I understand what hover does, but shouldn't the animation element apply to both parent and child...
Read more >Keyframes (transform animation) is not working on Chrome
Keyframes (transform animation) is not working on Chrome. Hi guys, I have an issue where my keyframes work properly on Firefox but don't...
Read more >CSS keyframe animation not working in Chrome
This is my first attempt at animation. After much fiddling, I was able to get this to work as I wanted. However, it's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@noahsalvi @lawrencecchen for now workaround is to set
combile: false
andglobalUtility: false
I will work on a fix for compile modeIm facing the same problem with animations not working and setting compile to false in my rollup file did not fix it for me. The bundled output is: