Search box
Just some fancy css
by h2n0
HTML
<div class="holder">
<div class="stick"></div>
<div class="inputHolder">
<input type="text" placeHolder="Seach..."/>
<div class="arrowHolder">
<div class="line gone"></div>
<div class="point gone"></div>
</div>
</div>
</div>
CSS
.inputHolder{
position: absolute;
transition: all 0.25s ease-in-out;
border-radius: 50%;
margin-left: 55px;
margin-right: 55px;
width: 40px;
height: 40px;
overflow: hidden;
border: 2px solid white;
top: 50%;
z-index: 2;
background-color:inherit;
}
.holder:hover .inputHolder{
margin: 0;
width: 170px;
border-radius: 20px;
}
.inputHolder:hover input{
opacity: 1;
}
.inputHolder input{
margin-top: 10px;
opacity: 0;
transition: all 0.125s ease-in-out;
background-color: inherit;
color: #FFF;
font-family: sans-serif;
font-size: 16px;
border: none;
text-align: left;
margin-left: 15px;
width: 110px;
font-weight: bold;
overflow: hidden;
z-index:0;
}
.holder{
width: 170px;
height: 40px;
position: absolute;
left: 50%;
margin-left: -75px;
background-color: inherit;
}
.stick{
border-top: 3px solid white;
width: 50px;
transform: rotate(45deg);
position: absolute;
bottom: -25px;
left: 45%;
transition: all 0.25s linear;
border-radius: 25px;
z-index: 1;
}
body{
background-color: #8F8;
}
.holder:hover .stick{
width: 20px;
bottom: -15px;
}
.arrowHolder{
float: right;
position: absolute;
background-color: #7E7;
width: 40px;
height: 40px;
opacity: 0;
transition: all 1.5s;
top: 0px;
right: 0px;
}
.holder:hover .arrowHolder{
opacity: 1;
}
.arrowHolder .line{
position: absolute;
border-top: 2px solid #FFF;
width: 20px;
top: 50%;
left: 10px;
border-radius: 5px;
}
.arrowHolder .point{
position: absolute;
border-top: 2px solid #FFF;
border-right: 2px solid #FFF;
width: 10px;
height: 10px;
top: 38%;
left: 18px;
transform: rotate(45deg);
}
.holder:hover .gone{
opacity: 1;
}
.gone{
opacity: 0;
}