"Loading button effect (no JS)"
Bootstrap 3.3.0 Snippet by ASDAFF

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="//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">
<h1 class="col-xs-12">Loading button effect</h1>
<div class="col-xs-12 text-center">
<h2>Preview</h2>
<table class="table">
<tr>
<th>No effect</th>
<th>With effect</th>
</tr>
<tr>
<td colspan="2">Base effect</td>
</tr>
<tr>
<td>
<button class="btn btn-lg btn-primary">Button</button>
<button class="btn btn-lg btn-default">Button</button>
<button class="btn btn-lg btn-info">Button</button>
<button class="btn btn-lg btn-warning">Button</button>
<button class="btn btn-lg btn-danger">Button</button>
</td>
<td>
<button class="btn btn-lg btn-primary m-progress">Button</button>
<button class="btn btn-lg btn-default m-progress">Button</button>
<button class="btn btn-lg btn-info m-progress">Button</button>
<button class="btn btn-lg btn-warning m-progress">Button</button>
<button class="btn btn-lg btn-danger m-progress">Button</button>
</td>
</tr>
<tr>
<td colspan="2">For any size</td>
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
@-webkit-keyframes ld {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
@-moz-keyframes ld {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
@-o-keyframes ld {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
@keyframes ld {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1); }
}
.m-progress {
position: relative;
opacity: .8;
color: transparent !important;
text-shadow: none !important;
}
.m-progress:hover,
.m-progress:active,
.m-progress:focus {
cursor: default;
color: transparent;
outline: none !important;
box-shadow: none;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: