Animation
See original GitHub issueHello, problem is in transform: rotate(360deg);
I using tailwind.css and if I use animate-spin
class to span
icon, style transform
for svg, does not allow adding animation.
P.S.
.animate-spin{
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
} to {
transform: rotate(360deg);
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Animation - Wikipedia
Animation is a method by which still figures are manipulated to appear as moving images. In traditional animation, images are drawn or painted...
Read more >Animation Magazine: Home
TV & Streaming Bytes: December Series Sales · Animation Magazine - 4 days ago.
Read more >Animation | History, Movies, Television, & Facts | Britannica
animation, the art of making inanimate objects appear to move. Animation is an artistic impulse that long predates the movies.
Read more >Animaker, Make Animated Videos on Cloud for free
Animaker is an online do-it-yourself (#DIY) animation video maker that brings studio quality presentations within everyone's reach. Animated Videos ...
Read more >Animation Desk | The Best Animation App - Kdan Mobile
Animation Desk is a free animation app available on iPad, iPhone, ... The simple and beautiful software for creating animation, cartoons, and animatics....
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 FreeTop 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
Top GitHub Comments
It is caused by bug in Tailwind. This is their spin animation code:
There is no “from”, so it transforms from initial state. SVG rendered by Iconify have style set to
transform: rotate(360deg)
to fix SVG rendering bug in Firefox. Because initial state matches final state, no animation happens.You can test that by using this:
First example will spin, second example will not, even though their style has identical layout.
Workaround is to set transformation on icon:
Firefox bug has been fixed for a while, so it is a legacy support. In the latest version of SVG framework I’ve removed that code because latest version of browser + few previous versions do not have that bug anymore, so it is safe to remove workaround.
Update to SVG framework 2.0.0-rc.5
Bugzilla issue: https://bugzilla.mozilla.org/show_bug.cgi?id=608812