Thu Jul 21 2022
Spinner Loader
CSS1374 views
File Name: spinner-loader.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spinner Loader</title>
<style>
* {
margin: 0;
padding: 0;
}
body { background-color: #292929; }
section {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.loader {
width: 80px;
height: 80px;
border: transparent solid 3px;
border-left-color: #fff;
border-top-color: #fff;
border-radius: 100%;
position: relative;
animation: loading 5s infinite linear;
}
.loader::before {
position: absolute;
content: '';
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border: transparent solid 3px;
border-left-color: #fff;
border-top-color: #fff;
border-radius: 100%;
animation: loading 2s infinite linear reverse
}
.loader::after {
position: absolute;
content: '';
top: 20px;
left: 20px;
right: 20px;
bottom: 20px;
border: transparent solid 3px;
border-left-color: #fff;
border-top-color: #fff;
border-radius: 100%;
animation: loading 4s infinite linear;
}
@keyframes loading {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<section>
<div class="loader"></div>
</section>
</body>
</html>
Result Screenshot(s)
Author:Geekboots