Input Field Fade-in Glow
Pure CSS.
HTML
<form action="#" method="post">
<div>
<label for="name">Text Input</label>
<input type="text" name="name" id="name" value="" tabindex="1" />
</div>
<div>
<label for="textarea">Textarea</label>
<textarea cols="40" rows="8" id="textarea"></textarea>
</div>
</form>
CSS
body {margin: 10px;}
input[type=text], textarea {
-webkit-transition: all 0.50s ease-in-out;
-moz-transition: all 0.50s ease-in-out;
-ms-transition: all 0.50s ease-in-out;
-o-transition: all 0.50s ease-in-out;
outline: none;
padding: 3px 0px 3px 3px;
margin: 5px 1px 3px 0px;
border: 1px solid #d79800;
}
input[type=text]:focus, textarea:focus {
box-shadow: 0 0 5px #d46a15;
padding: 3px 0px 3px 3px;
margin: 5px 1px 3px 0px;
border: 1px solid #bf4c24;
}
label {
width: 100px;
float: left;
padding-top: 6px;
color: #bf4c24;
}