I've implemented my textarea, which is shown/hidden with transition animation on hover on its master element:
my LESS:
.my-hidden-textarea textarea{
width:0px;
height:0px;
resize: none;
.transition(~"width 0.3s, height 0.3s, left 0.3s");
.box-sizing(border-box);
}
.my-hidden-textarea:hover textarea{
left:-338px;
width:350px;
height:100px;
}
I want to keep the resize option for the textarea, but the problem is that when I resize the textarea, it overrides the size given by the css and when I hover out, the textarea remains opened (no size change).
I tried to add !important, resp: width:0px !important; height:0px !important; .... width:350px !important; height:100px !important; however, now the area is not resizable any more (even with resize:both).
It happens in Firefox 29.0, I haven't tested other browsers but I expect similar problem.
Is there a pure CSS3 solution, or do I have to use javascript for such animation? thanks in advance.