-
Notifications
You must be signed in to change notification settings - Fork 0
/
rings.html
101 lines (96 loc) · 1.88 KB
/
rings.html
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>html5 experiment "Double Rings"</title>
<style>
a {
color:#333;
}
a:hover {
color:#555;
}
h1 {
margin:0 0 8px;
}
header ul {
font-size:12px;
list-style:none;
}
.doublering {
color:#dde;
position:absolute;
top:50%;
left:50%;
margin-left:-140px;
margin-top:-140px;
width:280px;
height:280px;
text-align: center;
line-height:280px;
font-size:30px;
text-transform: uppercase;
}
.doublering:before, .doublering:after {
content: "";
border-radius: 100%;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform-origin: center;
}
.doublering:after {
box-shadow:
inset 0 17.5px 0 rgba(250, 250, 0, .6),
inset 17.5px 0 0 rgba(250, 200, 0, .6),
inset 0 -17.5px 0 rgba(250, 150, 0, .6),
inset -17.5px 0 0 rgba(250, 100, 0, .6);
-webkit-animation:rotar 2s linear infinite;
}
.doublering:before {
box-shadow:
inset 0 17.5px 0 rgba(0, 250, 250, .6),
inset 17.5px 0 0 rgba(0, 200, 200, .6),
inset 0 -17.5px 0 rgba(0, 150, 200, .6),
inset -17.5px 0 0 rgba(0, 200, 250, .6);
-webkit-animation:rotarIz 2s linear infinite;
}
@-webkit-keyframes rotar{
0%{
transform:rotateZ(0deg) scaleX(1) scaleY(1);
}
50%{
transform:rotateZ(180deg) scaleX(0.82) scaleY(0.95);
}
100%{
transform:rotateZ(360deg) scaleX(1) scaleY(1);
}
}
@-webkit-keyframes rotarIz{
0%{
transform:rotateZ(0deg) scaleX(1) scaleY(1);
}
50%{
transform:rotateZ(-180deg) scaleX(0.95) scaleY(0.85);
}
100%{
transform:rotateZ(-360deg) scaleX(1) scaleY(1);
}
}
</style>
</head>
<body>
<header>
<h1>Double Rings</h1>
<ul>
<li><a href="http://codepen.io/fixcl/pen/lvCFr" target="_blank">double ring</a></li>
</ul>
</header>
<div class="doublering">beijaflor</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
</script>
</body>
</html>