Datasets:
File size: 1,845 Bytes
646ba5f | 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | <!DOCTYPE html>
<html>
<head>
<style>.container {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: #ededed;
}
.loader {
max-width: 15rem;
width: 100%;
height: auto;
stroke-linecap: round;
}
circle {
fill: none;
stroke-width: 3.5;
-webkit-animation-name: preloader;
animation-name: preloader;
-webkit-animation-duration: 3s;
animation-duration: 3s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
transform-origin: 170px 170px;
will-change: transform;
}
circle:nth-of-type(1) {
stroke-dasharray: 550px;
}
circle:nth-of-type(2) {
stroke-dasharray: 500px;
}
circle:nth-of-type(3) {
stroke-dasharray: 450px;
}
circle:nth-of-type(4) {
stroke-dasharray: 300px;
}
circle:nth-of-type(1) {
-webkit-animation-delay: -0.15s;
animation-delay: -0.15s;
}
circle:nth-of-type(2) {
-webkit-animation-delay: -0.3s;
animation-delay: -0.3s;
}
circle:nth-of-type(3) {
-webkit-animation-delay: -0.45s;
animation-delay: -0.45s;
}
circle:nth-of-type(4) {
-webkit-animation-delay: -0.6s;
animation-delay: -0.6s;
}
@-webkit-keyframes preloader {
50% {
transform: rotate(360deg);
}
}
@keyframes preloader {
50% {
transform: rotate(360deg);
}
}</style>
</head>
<body>
<div class="container">
<svg class="loader" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 340 340">
<circle cx="170" cy="170" r="160" stroke="#E2007C"/>
<circle cx="170" cy="170" r="135" stroke="#404041"/>
<circle cx="170" cy="170" r="110" stroke="#E2007C"/>
<circle cx="170" cy="170" r="85" stroke="#404041"/>
</svg>
</div>
<script></script>
</body>
</html> |