"Glyphicon Animate, Rotation and Flip"
Bootstrap 3.2.0 Snippet by abfaycal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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">
<h3>Animate gluphicon :</h3>
<button class="btn btn-default"><i class="glyphicon glyphicon-repeat gly-spin"></i></button>
<button class="btn btn-default"><i class="glyphicon glyphicon-cog gly-spin"></i></button>
<button class="btn btn-default"><i class="glyphicon glyphicon-th-large gly-spin"></i></button>
<button class="btn btn-default"><i class="glyphicon glyphicon-refresh gly-spin"></i></button>
<h3>Rotate gluphicon :</h3>
<button class="btn btn-default"><i class="glyphicon glyphicon-leaf"></i> normal</button>
<button class="btn btn-default"><i class="glyphicon glyphicon-leaf gly-rotate-90"></i> gly-rotate-90</button>
<button class="btn btn-default"><i class="glyphicon glyphicon-leaf gly-rotate-180"></i> gly-rotate-180</button>
<button class="btn btn-default"><i class="glyphicon glyphicon-leaf gly-rotate-270"></i> gly-rotate-270</button>
<h3>Flip gluphicon :</h3>
<button class="btn btn-default"><i class="glyphicon glyphicon-leaf gly-flip-horizontal"></i> gly-flip-horizontal</button>
<button class="btn btn-default"><i class="glyphicon glyphicon-leaf gly-flip-vertical"></i> gly-flip-vertical</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
.gly-spin {
-webkit-animation: spin 2s infinite linear;
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
}
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
}
}
@-o-keyframes spin {
0% {
-o-transform: rotate(0deg);
}
100% {
-o-transform: rotate(359deg);
}
}
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: