Replies: 9 comments 4 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.
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