.button {
display: inline-block; border-radius: 2px; background-color: #f4511e; border: none; text-align: center;
font-size: 14px; font-family:'Lato',arial; color:white; padding:5px;
transition: all 0.5s; cursor: pointer; height:30px; width:90px;
}
.search {
margin-bottom:-20px; border-top-left-radius:6px; border-top-right-radius:2px; border-bottom-right-radius:2px;
border-bottom-left-radius:6px; border:1px solid #b3daff; height:25px; outline: none; margin-right:-3px;
}
<button class="button" id="green">lookafter</button>
<input type="text" class="search" id="box" style="width: 100px; display: none;" placeholder="lookafter" autofocus />
I need the button totransform into input field by animation of 1 second. and change back to button when any other button is clicked
Bitte [bearbeiten Sie Ihren Beitrag] (http://stackoverflow.com/posts/37603790/edit), um es einfacher zu lesen und zu verstehen. Siehe http://stackoverflow.com/help/how-to-ask –