anya-ji's picture
Add files using upload-large-folder tool
61cb1f4 verified
Raw History Blame Contribute Delete
1.48 kB
<!DOCTYPE html>
<html>
<head>
<style>/**
* This work is licensed under the Creative Commons
* Attribution 3.0 Unported License. To view a copy
* of this license, visit http://creativecommons.org/licenses/by/3.0/.
*
* Author: Girish Sharma <scrapmachines@gmail.com>
*/
/* Demo specific styles begin */
* {margin: 0; padding: 0;}
body {
background: #eee;
}
.loader-ring {
top: calc(50% - 5px);
left: calc(50% - 5px);
}
/* Demo specific styles end */
/* Loader ring with 6 dots */
.loader-ring, .loader-ring:before, .loader-ring:after {
display: inline-block;
width: 15px;
height: 40px;
line-height: 80px;
transform-origin: 8px 0px;
color: teal;
font-size: 40px;
font-family: "Times New Roman";
position: absolute;
z-index: 100000;
content: '•';
}
.loader-ring:before, .loader-ring:after {
opacity: 0;
text-shadow: 12px -2px 0px teal, -12px -2px 0px teal;
transform: rotateZ(0deg);
animation: loading 4s cubic-bezier(.15,.65,.85,.35) infinite, loading-shadow 2s cubic-bezier(.25,.75,.35,1) infinite alternate, loading-opacity 1s infinite;
}
.loader-ring:after {
animation-delay: 1.35s;
}
@keyframes loading {
to {
transform: rotateZ(360deg);
}
}
@keyframes loading-shadow {
from {
text-shadow: 35px -15px 0px teal, -35px -15px 0px teal;
}
}
@keyframes loading-opacity {
from {
opacity: 1;
}
to {
opacity: 1;
}
}</style>
</head>
<body>
<div class="loader-ring"></div>
<script></script>
</body>
</html>