Keyframes malformed when using animation utilities with `@apply`
adamwathan opened this issue ยท 5 comments
When you use @apply
with any of the animation utilities, the keyframe children are missing their selectors:
/* Input */
@tailwind utilities;
@layer utilities {
.foo {
@apply animate-spin;
}
}
/* Output */
.foo {
animation: spin 1s linear infinite
}
@keyframes spin {
{
transform: rotate(360deg)
}
}
The actual @keyframes
rule is generated later in the output than I would expect as well โ I'd think it would come first.
@adamwathan any idea when this will be fixed? amazing work with JIT by the way
Maybe Monday if I'm lucky, but I'm about to have a newborn baby any day now so hard to say.
@adamwathan really? me too... a week or so until it pops ๐ and congratulations by the way!
Fixed (thanks @thecrypticace!) will be out in next release! @g0shed sounds like my kid might show up today, good luck to you and congratulations as well! ๐ฅณ
@adamwathan my kid might show until friday, welcome to the sleep deprived nights ๐