-
Notifications
You must be signed in to change notification settings - Fork 14
/
round2.html
executable file
·70 lines (69 loc) · 1.51 KB
/
round2.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link type="text/css" href="../styles/style-edit.css" rel="stylesheet">
<style type="text/css">
style#editme {
-webkit-columns: 2;
columns: 2;
}
style#editme::before {
border-right: 2px solid rgba(0,0,0,0.33);
margin-right: 1em;
}
div {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size: 2em;
padding: 10px;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(0, 0, 0, 0.3);
margin: 10px 100px;
text-align: center;
}
</style>
</head>
<body>
<style contenteditable id="editme">div {
-webkit-animation: 10s round alternate 2 5s;
animation: 10s round alternate 2 5s;
}
div:nth-of-type(even) {
-webkit-animation: 10s square_to_round alternate 2 5s;
animation: 10s square_to_round 2 infinite 5s;
}
@-webkit-keyframes round {
100% {
border-radius: 50%;
}
}
@-webkit-keyframes square_to_round {
0% {
border-radius: 0%;
}
100% {
border-radius: 50%;
}
}
@keyframes round {
100% {
border-radius: 50%;
}
}
@keyframes square_to_round {
0% {
border-radius: 0%;
}
100% {
border-radius: 50%;
}
}</style>
<div>No border-radius</div>
<div>No border-radius</div>
<div style="border-radius: 0;">border-radius: 0;</div>
<div style="border-radius: 0;">border-radius: 0;</div>
<div style="border-radius: 25%;">border-radius: 25%;</div>
<div style="border-radius: 25%;">border-radius: 25%;</div>
</body>
</html>