"Hover Effect On Button"
Bootstrap 3.3.0 Snippet by rshriwas06

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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 class="text-center page-header">Hover Effect On Button</h2>
<button class="btn-change">Button</button>
<button class="btn-change1">Button</button>
<button class="btn-change2">Button</button>
<button class="btn-change3">Button</button>
<button class="btn-change4">Button</button>
<button class="btn-change5">Button</button>
<button class="btn-change6">Button</button>
<button class="btn-change7">Button</button>
<button class="btn-change8">Button</button>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
body {
font: 400 1.4rem 'Lato', Verdana, Helvetica, sans-serif;
}
.btn-change{
height: 50px;
width: 100px;
background: lightseagreen;
margin: 20px;
float: left;
box-shadow: 0 0 1px #ccc;
-webkit-transition: all 0.5s ease-in-out;
border: 0px;
color: #fff;
}
.btn-change:hover{
-webkit-transform: scale(1.1);
background: #31708f;
}
.btn-change1{
height: 50px;
width: 100px;
background: lightseagreen;
margin: 20px;
float: left;
border: 0px;
color: #fff;
box-shadow: 0 0 1px #ccc;
-webkit-transition-duration: 0.5s;
-webkit-box-shadow: 0px 0px 0 0 #31708f inset , 0px 0px 0 0 #31708f inset;
}
.btn-change1:hover{
-webkit-box-shadow: 50px 0px 0 0 #31708f inset , -50px 0px 0 0 #31708f inset;
}
.btn-change2{
height: 50px;
width: 100px;
background: #31708f ;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Thank you!

michaellosdev () - 4 years ago - Reply 0


Thank you!

michaellosdev () - 4 years ago - Reply 0