Replies: 10 comments 6 replies
-
|
You can actually do this already by adding module.exports = {
theme: {
extend: {
scale: {
'-1': '-1'
}
}
}
} |
Beta Was this translation helpful? Give feedback.
-
|
I've been doing this (the utility names are more verbose): plugin(function({ addUtilities, theme, variants }) {
const newUtilities = {
'.flip-horizontal': {
'--transform-scale-x': '-1',
},
'.flip-vertical': {
'--transform-scale-y': '-1',
},
}
addUtilities(newUtilities, variants('flip'))
}) |
Beta Was this translation helpful? Give feedback.
-
|
You can close this if you feel it's unnecessary, but I think it would be nice to have explicitly-named utilities for flipping elements; |
Beta Was this translation helpful? Give feedback.
-
|
I was a bit surprised you couldn't flip using Tailwind, not even through overriding! Overriding scale wont work, it flips both x and y axis! So a |
Beta Was this translation helpful? Give feedback.
-
|
@jesperp Using the example @adamwathan provided above, you should be able to do this: |
Beta Was this translation helpful? Give feedback.
-
|
With JIT, you can use |
Beta Was this translation helpful? Give feedback.
-
|
My solution: Classes: |
Beta Was this translation helpful? Give feedback.
-
|
-scale-y-100 -rotate-180 |
Beta Was this translation helpful? Give feedback.
-
|
Any thoughts on how to translate this to v4? |
Beta Was this translation helpful? Give feedback.
-
|
How do I unsubscribe?
…On Wed, Nov 19, 2025 at 9:33 AM Patrick Ludewig ***@***.***> wrote:
For svg this is not working for me. The following worked for me tho for
svg in Tailwind 3.4.17:
-scale-x-100 !scale-y-100
—
Reply to this email directly, view it on GitHub
<#2146 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BS4ZOIO2QSRUJCVA4W6VV6D35Q2NRAVCNFSM6AAAAAB7OJEZOWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBRGEYDCMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <tailwindlabs/tailwindcss/repo-discussions/2146/comments/15011010@
github.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example:
Beta Was this translation helpful? Give feedback.
All reactions