Replies: 6 comments 9 replies
-
Hey @laosb 👋 The example of the The animations implemented in Tailwind are a small subset of the most commonly used animations. You're highly encouraged to add custom animations to the config file to fulfil specific needs that aren't covered in the "base" options. |
Beta Was this translation helpful? Give feedback.
-
For those coming here with the same issue, this is what I did. Add the following to your module.exports = {
theme: {
extend: {
animation: {
'reverse-spin': 'reverse-spin 1s linear infinite'
},
keyframes: {
'reverse-spin': {
from: {
transform: 'rotate(360deg)'
},
}
}
}
}
} and rebuild your assets |
Beta Was this translation helpful? Give feedback.
-
You can just use: |
Beta Was this translation helpful? Give feedback.
-
I don't know why for me works |
Beta Was this translation helpful? Give feedback.
-
CSS property https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction |
Beta Was this translation helpful? Give feedback.
-
<svg class="animate-spin" ... /> (default) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For now,
.animate-spin
only spins clockwise. In some situations, counter-clockwise spinning is also needed.For example, Heroicons provides icon
refresh
:... arrows of which are counter-clockwise, and applying a clockwise spinning animation makes it very weird.
Beta Was this translation helpful? Give feedback.
All reactions