anya-ji's picture
Add files using upload-large-folder tool
c3d5f0d verified
Raw History Blame Contribute Delete
1.73 kB
<!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>