Is it possible to add a transition for all
, but just disable a single one too? For example:
textarea {
width: 400px;
height: 60px;
min-height: 60px;
resize: vertical;
color: #ccc;
border: 1px solid #ccc;
transition: all 0.3s, height 0s;
}
textarea:focus {
color: #333;
border: 3px solid #f00;
padding: 10px;
}
<textarea>text</textarea>
You see (at least in firefox) that on resize of the box, that it lags. In Chrome and IE there is no problem with it, works fine.
Also using a time like 1ms
for disabling is not working:
textarea {
width: 400px;
height: 60px;
min-height: 60px;
resize: vertical;
transition: all 0.5s, height 1ms;
}
<textarea placeholder="test"></textarea>