Using jQuery to animate a ASP.net textbox when it's focused leaves a trailing animation in Firefox 3.5.
The effect is no longer visible after modifying the input box to have no border. The top box has no border and has no trailing animation, while the bottom box with a border still has a trailing animation.
jQuery is as follows:
$(document).ready(function(){
$("input").focus(function(){
$(this).animate({width:"500px"}, "fast")
}).blur(function(){
$(this).animate({width:"200px"}, "fast")
});
});
Contents of the body are:
<form runat="server">
<div>
<p><asp:TextBox width="200px" runat="server"/></p>
<p><asp:TextBox width="200px" runat="server"/></p>
</div>
</form>
Is there any way to get rid of the trailing animation as the textbox is expanded? Animating "fast" helps a little bit, it's much worse when animating slow. The problem gets significantly worse when there is color involved.
Thanks in advance.
This is not something that can be seen in Internet Explorer 8, Chrome or Opera.