JSFiddle - React, Tailwind, and code Playground
by darkajax
HTML
<form id="searchbox" method="get" action="http://www.google.com">
<input id="q" type="text" name="q" size="20"><input type="submit" value="search">
</form>
JavaScript
$("#q").click(function(){
$(this).animate({width:"300px"},400);
}).blur(function(){
$(this).animate({width:"150px"},400);
});