"Icon Hover Effect with Transition"
Bootstrap 3.3.0 Snippet by naimansari

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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"> <h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> <ul> <li><a href="#">Ankit</a></li> <li><a href="#">Monoj Negi</a></li> </ul> </div> </div>
ul li {list-style-type:none; float:left; padding-left:20px;} ul li a { text-decoration:none; position:relative; padding:5px;} ul li a:before { border-top:1px solid #000; border-bottom:1px solid #000; content:""; bottom:0; left:0; position:absolute; right:0; top:0; opacity:0; transform:scale(0,1); transition:opacity 0.35s ease 0s, transform 0.35s ease 0s;} ul li a:after { border-left:1px solid #000; border-right:1px solid #000; content:""; bottom:0; left:0; position:absolute; right:0; top:0; opacity:0; transform:scale(1,0); transition:opacity 0.35s ease 0s, transform 0.35s ease 0s;} ul li a:hover:before { opacity:1; transform:scale(1);} ul li a:hover:after { opacity:1; transform:scale(1);}

Related: See More


Questions / Comments: