Skip to content

Commit 84aef9c

Browse files
committed
add blasting-ripple loader
1 parent 7212d95 commit 84aef9c

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.DS_Store
33
node_modules
44
dist/
5+
.idea/

index.html

+12-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,23 @@
1212
<link rel="stylesheet" href="spinners/blasting-circle/blasting-circle.css">
1313
<link rel="stylesheet" href="spinners/rotating-plane/rotating-plane.css">
1414
<link rel="stylesheet" href="spinners/bouncing-circle/bouncing-circle.css">
15+
<link rel="stylesheet" href="spinners/blasting-ripple/blasting-ripple.css">
16+
17+
<style>
18+
.spinner, .ripple {
19+
margin-bottom: 20px;
20+
}
21+
</style>
1522
</head>
1623
<body>
1724
<h1>This is just a sample page, Homepage is under construction</h1>
1825
<div class="spinner circle"></div>
1926
<div class="spinner blasting-circle"></div>
2027
<div class="spinner rotating-plane"></div>
21-
<div class="spinner bouncing-circle"></div>
28+
<div class="spinner bouncing-circle"></div>
29+
<div class="ripple blasting-ripple">
30+
<div></div>
31+
<div></div>
32+
</div>
2233
</body>
2334
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@keyframes blast-ripple {
2+
0% {
3+
top: calc(var(--spinner-width, 100px) / 2 - var(--line-width, 4px));
4+
left: calc(var(--spinner-width, 100px) / 2 - var(--line-width, 4px));
5+
width: 0;
6+
height: 0;
7+
opacity: 1;
8+
}
9+
100% {
10+
top: -1px;
11+
left: -1px;
12+
width: calc(var(--spinner-width, 100px) - var(--line-width, 4px) );
13+
height: calc(var(--spinner-width, 100px) - var(--line-width, 4px) );
14+
opacity: 0;
15+
}
16+
}
17+
18+
.ripple.blasting-ripple {
19+
display: inline-block;
20+
position: relative;
21+
width: var(--spinner-width, 100px);
22+
height: var(--spinner-width, 100px);
23+
}
24+
25+
.ripple div {
26+
position: absolute;
27+
border: var(--line-width, 4px) solid var(--spinner-color-primary, #00f);
28+
opacity: 1;
29+
border-radius: 50%;
30+
animation: blast-ripple var(--animation-duration, 0.5s) cubic-bezier(0, 0.2, 0.8, 1) infinite;
31+
}
32+
33+
.ripple div:nth-child(2) {
34+
animation-delay: -0.5s;
35+
}

0 commit comments

Comments
 (0)