Replies: 6 comments 1 reply
-
Did you ever get this to work? I was wondering the same thing. I have a Tailwind Play to test: https://play.tailwindcss.com/koSd0VDdpO |
Beta Was this translation helpful? Give feedback.
-
Unfortunately not possible with CSS, you can't transition a background image. Best you can do is transition the opacity of a transparent overlay: |
Beta Was this translation helpful? Give feedback.
-
someone mayde those: |
Beta Was this translation helpful? Give feedback.
-
what also works with tailwind 3: |
Beta Was this translation helpful? Give feedback.
-
This is better than the ones listed here: Raw CSS: https://codepen.io/chriscoyier/pen/eRbLWP Tailwind CSS: relative z-10 overflow-hidden bg-gradient-to-r from-green-700 from-40% to-lime-500 |
Beta Was this translation helpful? Give feedback.
-
basically making the background larger than the element and transitioning its position is the solution. that worked for me! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to make transition work for the next code?
Beta Was this translation helpful? Give feedback.
All reactions