Datasets:
File size: 1,730 Bytes
c3d5f0d | 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 | <!DOCTYPE html>
<html>
<head>
<style>/* Demo specific style begin */
.loader-dots {
position: absolute;
top: calc(50% - 10px);
left: calc(50% - 40px);
}
/* Demo specific style end */
.loader-dots:before, .loader-dots:after {
height: 20px;
width: 45px;
background-image: radial-gradient(closest-side, #111 100%, transparent), radial-gradient(closest-side, #111 100%, transparent);
background-position: 0%, 100%;
background-size: 20px 20px, 20px 20px;
background-repeat: no-repeat;
position: absolute;
animation-duration: 0.8s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-name: spin, onOff;
content: '';
}
.loader-dots:before {
animation-direction: normal, reverse;
}
.loader-dots:after {
right: 0px;
animation-direction: reverse, normal;
}
.loader-dots {
height: 20px;
width: 70px;
background-image: radial-gradient(closest-side, #111 100%, transparent), radial-gradient(closest-side, #111 100%, transparent);
background-position: 0%, 100%;
background-size: 20px 20px, 20px 20px;
background-repeat: no-repeat;
position: absolute;
animation: toggle 0.8s ease-in-out infinite;
}
@keyframes spin {
0% { transform: rotate(0deg) }
50% { transform: rotate(180deg) }
100% { transform: rotate(180deg) }
}
@keyframes onOff {
0% { opacity: 0; }
49% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 1; }
}
@keyframes toggle {
0% { background-size: 0px 0px, 20px 20px }
49.9% { background-size: 0px 0px, 20px 20px }
50% { background-size: 20px 20px, 0px 0px }
100% { background-size: 20px 20px, 0px 0px }
}
</style>
</head>
<body>
<div class="loader-dots"></div>
<script></script>
</body>
</html> |