This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
89 lines (73 loc) · 1.52 KB
/
index.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
<head>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="radial.js"></script>
<style type="text/css">
ul.radial {
list-style-type: none;
display: block;
position: absolute;
bottom: 20px;
left: 20px;
}
ul.radial li {
display:block;
position:absolute;
padding:0;
margin:0;
border-radius: 20px;
background: #000;
border: 2px solid #fff;
width: 20px;
height:20px;
font-size: 9px;
text-align:center;
box-shadow: 0px 0px 6px rgba(0,0,0,0.5);
left: 0px;
top: 0px;
opacity: 0;
-webkit-transition: all 0.5s ease;
/* cubic-bezier(0, 0.35, .5, 1.3) */
}
ul.radial li a {
color: #FFF;
text-decoration:none;
}
ul.radial li.button {
display:block;
top:0;
left:0;
width:20px;
height:20px;
text-align:center;
color:#FFF;
border-radius: 20px;
background: #F00;
border: 2px solid #fff;
box-shadow: 0px 0px 4px rgba(0,0,0,0.5);
-webkit-transition: all 1s ease;
font-size: 16px;
opacity:1;
}
ul.radial.active li.button {
-webkit-transform: rotate(405deg)
}
ul.radial.active li {
opacity: 1;
-webkit-transform: rotate(720deg);
}
</style>
</head>
<body>
<h1>Cool Path-style radial buttons</h1>
<p>Blah blah blah
<ul class="radial">
<li class="button">+</li>
<li><a href="#">A</a></li>
<li><a href="#">B</a></li>
<li><a href="#">C</a></li>
<li><a href="#">D</a></li>
<li><a href="#">E</a></li>
<li><a href="#">F</a></li>
</ul>
</p>
</body>