"Glyphicon Spinner"
Bootstrap 3.2.0 Snippet by uzumaxy

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.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">
<div class='col-lg-12 text-center'>
<p>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-repeat fast-right-spinner"></span>
fast-right-spinner
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-repeat normal-right-spinner"></span>
normal-right-spinner
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-repeat slow-right-spinner"></span>
slow-right-spinner
</button>
</p>
<p>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-repeat fast-left-spinner"></span>
fast-left-spinner
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-repeat normal-left-spinner"></span>
normal-left-spinner
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-repeat slow-left-spinner"></span>
slow-left-spinner
</button>
</p>
</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, html {
padding-top: 1em;
}
.glyphicon.fast-right-spinner {
-webkit-animation: glyphicon-spin-r 1s infinite linear;
animation: glyphicon-spin-r 1s infinite linear;
}
.glyphicon.normal-right-spinner {
-webkit-animation: glyphicon-spin-r 2s infinite linear;
animation: glyphicon-spin-r 2s infinite linear;
}
.glyphicon.slow-right-spinner {
-webkit-animation: glyphicon-spin-r 3s infinite linear;
animation: glyphicon-spin-r 3s infinite linear;
}
.glyphicon.fast-left-spinner {
-webkit-animation: glyphicon-spin-l 1s infinite linear;
animation: glyphicon-spin-l 1s infinite linear;
}
.glyphicon.normal-left-spinner {
-webkit-animation: glyphicon-spin-l 2s infinite linear;
animation: glyphicon-spin-l 2s infinite linear;
}
.glyphicon.slow-left-spinner {
-webkit-animation: glyphicon-spin-l 3s infinite linear;
animation: glyphicon-spin-l 3s infinite linear;
}
@-webkit-keyframes glyphicon-spin-r {
0% {
-webkit-transform: rotate(0deg);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

To create spinner you have to add one of the following classes to selector with glyphicon:

- ".fast-right-spinner" - rotates by clockwise with high speed;

- ".normal-right-spinner" - rotates by clockwise with normal speed;

- ".slow-right-spinner" - rotates by clockwise with slow speed;

- ".fast-left-spinner" - rotates by anticlockwise with high speed;

- ".normal-left-spinner" - rotates by anticlockwise with normal speed;

- ".slow-left-spinner" - rotates by anticlockwise with slow speed.

Maxim Grischuk () - 10 years ago - Reply 0