File size: 1,484 Bytes
61cb1f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!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>