discuss icon indicating copy to clipboard operation
discuss copied to clipboard

Tailwind Transforms

Open connecteev opened this issue 5 years ago • 5 comments

If there a way to do this in tailwind Without having to use a plugin like https://github.com/benface/tailwindcss-transforms ?

.subscription__card:hover {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
}

connecteev avatar May 09 '19 20:05 connecteev

@adamwathan would love your thoughts on this one.

connecteev avatar May 09 '19 20:05 connecteev

Why don't you just add that to your stylesheet?

hacknug avatar May 10 '19 10:05 hacknug

Tailwind doesn't include transform classes so you either need to write them yourself (we have docs on how to do this: https://next.tailwindcss.com/docs/adding-new-utilities) or use an existing plugin.

adamwathan avatar May 10 '19 11:05 adamwathan

@adamwathan thanks. I'll use a plugin, I was just wondering why certain classes (like transform) aren't included.

connecteev avatar May 11 '19 20:05 connecteev

transforms have been added to v1.2 https://tailwindcss.com/docs/skew/#app

isaacfennell avatar Feb 18 '20 16:02 isaacfennell