Animation disable for part of class #3276
-
|
Hi! Is it possible to have animation on some parts of classes, and disable the animation on other classes? Here is an example of an input field that I have. What I try to do here is to animate hover and focus effect. What I try to disable is the (what this input field has, is an orange border - reason to disable outline) Is there a possibility to do this? Or do I need to structure my code in a different way to achieve this? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey! I think you could apply Also, from the code you shared, you need the class Finally, you can achieve the orange border as the focus ring by doing Here's a quick Tailwind Play example: https://play.tailwindcss.com/hefkY1iTqD |
Beta Was this translation helpful? Give feedback.
Hey!
I think you could apply
outline-noneinstead offocus:outline-none, to achieve this.Also, from the code you shared, you need the class
transitioninstead oftransformfor it to work properly.Finally, you can achieve the orange border as the focus ring by doing
focus:ring-2 focus:ring-yellow-600, although there is nothing wrong with using a border colour on focus.Here's a quick Tailwind Play example: https://play.tailwindcss.com/hefkY1iTqD