Transforms only work if applied after classes like rotate, translate
See original GitHub issuetw.`rotate-90 transform`
works as expected
however, tw.`transform rotate-90`
doesn’t work.
Seems anything set by transform
isn’t overridden later, so since transform
already sets --transform-rotate: 0
, rotate-90
is not applied. Same goes for all scale,skew, translate classes.
Also using rotate-90!
does nothing.
It all only works if the order is reversed. TailwindCSS makes all rules set by these secondary utils (rotate, skew, etc) as !important so they override.
Thank you for the amazing library btw 😄
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top Results From Across the Web
transform - CSS: Cascading Style Sheets - MDN Web Docs
The transform CSS property lets you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual formatting ......
Read more >How They Fit Together: Transform, Translate, Rotate, Scale ...
So a rotation rotates the x and y axes. If you have a transform that rotates 45 degrees and then apply a translate...
Read more >transform
The transform property allows you to visually manipulate an element by skewing, rotating, translating, or scaling:
Read more >Finer grained control over CSS transforms with individual ...
Learn how you can use the individual translate, rotate, and scale CSS properties to approach transforms in an intuitive way.
Read more >CSS Transform Is Dead! Use This Instead - YouTube
... recently were the addition of the translate, rotate, and scale... ... need to use the transform property which is incredibly nice since...
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
Great! 1.0.0-alpha.8 works for me. 🎉
Thanks @ben-rogerson and @owaiswiz! 👏
This issue is solved! 🎉
We’ve reached closing time.