"animate css"
Bootstrap 3.0.0 Snippet by evarevirus

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
<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 ---------->
<section>
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>Buttons</h2>
<p>These animations can be used as continous animations or as hover effects. For the purposes of this demo I have set them to be continous animations.</p>
<h3>Transition Effects</h3>
<div class="btns">
<button class="btn fade-in">Fade</button>
<button class="btn grow">Grow</button>
<button class="btn shrink">Shrink</button>
<button class="btn tilt">Tilt</button>
<button class="btn shake">Shake</button>
<button class="btn bounce">Bounce</button>
<button class="btn slide-width">Slide Width</button>
</div>
<h3>Background Effects</h3>
<div class="btns">
<button class="btn fade-bg">Fade</button>
<button class="btn slide left">Slide Left</button>
<button class="btn slide right">Slide Right</button>
<button class="btn slide top">Slide Top</button>
<button class="btn slide bottom">Slide Bottom</button>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="row">
<div class="col-xs-12">
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
img {
max-width: 100%;
}
section {
padding: 30px 0;
}
section .row + .row {
margin-top: 30px;
}
/*BUTTONS*/
.btns .btn {
padding: 10px 15px;
background: #ccc;
color: #000;
border: none;
}
.btns .btn + .btn {
margin-left: 20px;
}
.btns .btn.fade-in {
-webkit-animation: fade 3s linear 0s infinite alternate;
-moz-animation: fade 3s linear 0s infinite alternate;
-ms-animation: fade 3s linear 0s infinite alternate;
-o-animation: fade 3s linear 0s infinite alternate;
animation: fade 3s linear 0s infinite alternate;
}
.btns .btn.grow {
-webkit-animation: grow 1s linear 0s infinite alternate;
-moz-animation: grow 1s linear 0s infinite alternate;
-ms-animation: grow 1s linear 0s infinite alternate;
-o-animation: grow 1s linear 0s infinite alternate;
animation: grow 1s linear 0s infinite alternate;
}
.btns .btn.shrink {
-webkit-animation: shrink 1s linear 0s infinite alternate;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: