"Different Search box"
Bootstrap 3.1.0 Snippet by Kiraan

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="container-box col-xs-12 col-sm-12 col-md-4 col-lg-4"> <h4>Search show</h4> <div class="search-s"> <input type="text" class="form-control input-sm" maxlength="64" placeholder="Search" /> <button type="submit" class="btn btn-primary btn-sm">Search</button> </div> </div> <div class="container-box col-xs-12 col-sm-12 col-md-4 col-lg-4"> <h4>Mouse over search box</h4> <div class="search"> <input type="text" class="form-control input-sm" maxlength="64" placeholder="Search" /> <button type="submit" class="btn btn-primary btn-sm">Search</button> </div> </div> <div class=" container-box col-xs-12 col-sm-12 col-md-4 col-lg-4"> <h4>Mouse over slide from right</h4> <div class="search-right"> <input type="text" class="form-control input-sm" maxlength="64" placeholder="Search" /> <button type="submit" class="btn btn-primary btn-sm">Search</button> </div> </div> <div class=" container-box col-xs-12 col-sm-12 col-md-4 col-lg-4"> <h4>Mouse over slide from left</h4> <div class="search-show"> <input type="text" class="form-control input-sm" maxlength="64" placeholder="Search" /> <button type="submit" class="btn btn-primary btn-sm">Search</button> </div> </div> </div> </div>
.btn { height: 30px; position: absolute; right: 0; top: 5px; border-radius:1px; } .search:hover input, .search input:focus, .search-right:hover input, .search-right input:focus, .search-show:hover input, .search-show input:focus { width: 200px; margin-left: 0px; padding-left: 5px; } .search { padding: 5px 0; width: 230px; height: 30px; position: relative; left: 60px; float: left; line-height: 22px; } .search input { position: absolute; width: 0px; float: right; margin-left: 210px; -webkit-transition: all 0.7s ease-in-out; -moz-transition: all 0.7s ease-in-out; -o-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out; height: 30px; line-height: 18px; padding: 0 2px 0 2px; border-radius:1px; } .search-s { padding: 5px 0; width: 0px; height: 30px; position: relative; left: 60px; float: left; } .search-s input { position: absolute; width: 200px; float: right; margin-left: 0px; -webkit-transition: all 0.7s ease-in-out; -moz-transition: all 0.7s ease-in-out; -o-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out; height: 30px; line-height: 18px; padding: 0 2px 0 2px; border-radius:1px; } .search-right { padding: 5px 0; width: 0px; height: 30px; position: relative; left: 60px; float: left; } .search-right input { position: absolute; width: 0px; float: right; margin-left: -5px; -webkit-transition: all 0.7s ease-in-out; -moz-transition: all 0.7s ease-in-out; -o-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out; height: 30px; line-height: 18px; padding: 0 2px 0 2px; border-radius: 0px 20px 20px 0px; background-color: #ffffff; } .search-show { padding: 5px 0; width: 0px; height: 30px; position: relative; left: 60px; float: left; line-height: 22px; } .search-show input { position: absolute; width: 0px; float: right; margin-left: 200px; -webkit-transition: all 0.7s ease-in-out; -moz-transition: all 0.7s ease-in-out; -o-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out; height: 30px; line-height: 18px; padding: 0 0px 0 0px; border-radius: 0px; background-color: #ffffff; } .container-box{ padding:20px 20px; background-color:#d7d7d7; margin:20px; }

Related: See More


Questions / Comments: