<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.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="wrapper">
<button class="btn btn-primary">Button Hover Flash Effect</button>
<button class="btn btn-success">Button Hover Flash Effect</button>
<button class="btn btn-danger">Button Hover Flash Effect</button>
</div>
</div>
</div>
</div>
.btn {
border:0;
padding:20px 60px;
position:relative;
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
}
.btn:hover, .btn:visited, .btn:active {
-webkit-transition: all 200ms ease;
-moz-transition: all 200ms ease;
transition: all 200ms ease;
color: white;
text-decoration: none;
outline: none;
}
.btn-success, .btn-success:hover{
background-color: #2fab41;
}
.btn-primary, .btn-primary:hover{
background-color: #0088cc;
}
.btn-danger, .btn-danger:hover{
background-color: #cc2323;
}
.btn:hover:after {
width: 120%;
background-color: rgba(255, 255, 255, 0);
-webkit-transition: all .5s ease-out;
-moz-transition: all .5s ease-out;
-ms-transition: all .5s ease-out;
-o-transition: all .5s ease-out;
transition: all .5s ease-out;
}
.btn:after {
content: "";
position: absolute;
top: 0px;
left: 0px;
width: 0%;
height: 100%;
background-color: rgba(255, 255, 255, 0.4);
-webkit-transition: none;
-moz-transition: none;
-ms-transition: none;
-o-transition: none;
transition: none;
}
.wrapper { padding:25px 0;}