V
V
Vova Budnyak2018-03-04 18:26:05
css
Vova Budnyak, 2018-03-04 18:26:05

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

3 answer(s)
0
0xD34F, 2018-03-04
@0xD34F

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".

A
Alexander, 2018-03-04
@pi4yyy

https://jsfiddle.net/dhLz3yvy/3/

S
sdgroup14, 2018-03-05
@sdgroup14

because if i'm not mistaken the outline is "indirectly" the style... the highlight color of the input, etc. transition does not apply to it. if you want a beautiful outline - do it through the border

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question