Answer the question
In order to leave comments, you need to log in
Why does transition not work correctly with outline?
With Transition:0.3s, the outline appears immediately and the color changes smoothly.
https://jsfiddle.net/dhLz3yvy/1/
Answer the question
In order to leave comments, you need to log in
Everything works correctly.
Didn't think about the question - how can you "smoothly" make the transition from zero pixels to one? No way. There are only two possible values, so the transition will be instantaneous. Now, if you increase the thickness, then yes - it will look "smooth".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question