"Expanding Search input"
Bootstrap 4.0.0 Snippet by vilian

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.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="container"> <div class="row"> <div class="col-md-12"> <div class="jumbotron"> <h2>Expanding Search input</h2> <p><small class="text-muted">Click Search input and Expanding input</small></p> <input class="form-control input-lg" id="myInput" placeholder="Searchin text" type="text"> </div> </div> </div> </div>
#myInput { width:20%; -webkit-transition:width 0.8s ease-in-out; border-radius: 20px; } #myInput:focus { width:100%; -webkit-transition:width 0.8s ease-in-out; }

Related: See More


Questions / Comments: