Skip to content

Commit 1e4a56d

Browse files
committed
Neumorphism Loading Spinner
1 parent 2df1c0c commit 1e4a56d

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="UTF-8" />
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Neumorphism Loading Ring Spinner</title>
7+
<link rel="stylesheet" href="style.css" />
8+
</head>
9+
<body>
10+
<div class="wrapper">
11+
<span></span>
12+
</div>
13+
</body>
14+
</html>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
display: flex;
9+
justify-content: center;
10+
align-items: center;
11+
height: 100vh;
12+
background: #0e0e0e;
13+
}
14+
15+
.wrapper {
16+
position: relative;
17+
display: flex;
18+
justify-content: center;
19+
align-items: center;
20+
width: 300px;
21+
height: 300px;
22+
border-radius: 50%;
23+
box-shadow: inset -10px -10px 15px rgba(255, 255, 255, 1),
24+
inset 10px 10px 10px rgba(217, 217, 217, 0.1);
25+
}
26+
27+
.wrapper::before {
28+
content: "";
29+
position: absolute;
30+
width: 200px;
31+
height: 200px;
32+
border-radius: 50%;
33+
box-shadow: inset -10px -10px 15px rgba(255, 255, 255, 1),
34+
inset 10px 10px 10px rgba(217, 217, 217, 0.1);
35+
}
36+
37+
span {
38+
position: absolute;
39+
width: 220px;
40+
height: 186px;
41+
animation: rotate 5s infinite;
42+
}
43+
44+
span::before {
45+
content: "";
46+
position: absolute;
47+
width: 30px;
48+
height: 30px;
49+
background: crimson;
50+
border-radius: 50%;
51+
}
52+
53+
@keyframes rotate {
54+
0% {
55+
transform: rotate(0deg);
56+
}
57+
100% {
58+
transform: rotate(360deg);
59+
}
60+
}

0 commit comments

Comments
 (0)