"BOOTSTRAP CSS BUTTON HOVER EFECTS"
Bootstrap 4.1.1 Snippet by Pushpender

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2> BUTTON HOVER EFECTS</h2> </div> <p style="color:#fff">button hover effects button hover effects button hover effects</p> <div class"box-main"> <button class="btn hover1"><samp>></samp><span>Hover Me</span></button> <button class="btn hover1"><samp>></samp><span>Hover Me</span></button> <button class="btn hover1"><samp>></samp><span>Hover Me</span></button> <button class="btn hover1"><samp>></samp><span>Hover Me</span></button> <button class="btn hover1"><samp>></samp><span>Hover Me</span></button> </div> <hr> <a href="#" class="new"><samp>Hover Me</samp></a> <a href="#" class="new"><samp>Hover Me</samp></a> <a href="#" class="new"><samp>Hover Me</samp></a> <a href="#" class="new"><samp>Hover Me</samp></a> <a href="#" class="new"><samp>Hover Me</samp></a> </div>
.btn{font-size:18px; padding:8px 15px 8px 10px;position: relative; border:none; overflow:hidden;} .btn samp{display:inline-block; margin-right:20px; position: relative; z-index:1; color:#fff;} .btn:before{content:"";position: absolute; top:0; left:0; width:20%; background:#337AB7; height:100%; transition:all ease-in-out 0.5s; } .btn span{position: relative; z-index:1;} .btn:hover:before{width:100%;} .btn:hover span{color:#fff;} .new{font-size:14px; padding:10px 15px 8px 10px;position: relative; color:#fff; text-decoration:none; background:#00B2FF; display:inline-block; transition:all ease-in-out 0.5s; } .new samp{font-family: 'Airl', sans-serif; position: relative; z-index:1;} .new::after{content:"";position: absolute; width:100%; height:9%; left:0; bottom:0; background:#BA30FF; transition:all ease-in-out 0.5s; } .new:hover::after{height:100%; transition:all ease-in-out 0.5s;} .new:hover{color:#fff;text-decoration:none;} body{background:url(https://i.gifer.com/LDci.gif)} h2{color:#fff; font-family: 'Airl', sans-serif;}

Related: See More


Questions / Comments: