Add loading spinner example

This commit is contained in:
Andreas Hocevar
2022-03-19 10:32:41 +01:00
parent bf9472ac57
commit 26e6bf505c
3 changed files with 74 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
.map {
background: #85ccf9;
position: relative;
}
#map {
height: 400px;
position: relative;
}
@keyframes spinner {
to {
transform: rotate(360deg);
}
}
.spinner:after {
content: "";
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
margin-top: -20px;
margin-left: -20px;
border-radius: 50%;
border: 5px solid rgba(180, 180, 180, 0.6);
border-top-color: rgba(0, 0, 0, 0.6);
animation: spinner 0.6s linear infinite;
}