-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
59 lines (52 loc) Β· 2.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pure CSS Lightsaber</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@900&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Largely inspired from Kevin Powell https://codepen.io/kevinpowell/pen/jOygveP -->
<input type="checkbox" name="on-off" id="on-off" />
<input type="radio" name="color" id="blue" checked />
<label for="blue">Jedi Guardian</label>
<input type="radio" name="color" id="green" />
<label for="green">Jedi Consular</label>
<input type="radio" name="color" id="yellow" />
<label for="yellow">Jedi Sentinel</label>
<input type="radio" name="color" id="orange" />
<label for="orange">Jedi Strength</label>
<input type="radio" name="color" id="purple" />
<label for="purple">Jedi Balance</label>
<input type="radio" name="color" id="red" />
<label for="red">Sith</label>
<input type="radio" name="color" id="dark" />
<label for="dark">DarkSaber</label>
<div class="lightsaber">
<label for="on-off" class="handle"></label>
<div class="blade"></div>
</div>
<!-- CodePen link -->
<a class="ribbon codepen" target="_blank" href="https://codepen.io/KevDuc/pen/ExWaaVB/left?editors=1100">
<object type="image/jpg"
data="https://img.shields.io/static/v1?label=View%20on%20CodePen&logo=codepen&message=%20&color=333&labelColor=333&style=flat-square&logoWidth=15">
β View on CodePen
</object>
</a>
<!-- GitHub link -->
<a class="ribbon github" target="_blank" href="https://github.com/kevduc/css-lightsaber-selection">
<object type="image/jpg"
data="https://img.shields.io/static/v1?label=View%20on%20GitHub&logo=github&message=%20&color=111&labelColor=111&style=flat-square&logoWidth=15">
π±βπ€ View on GitHub
</object>
</a>
<!-- Prevent animations from firing when page loads: https://stackoverflow.com/questions/14389566/stop-css-transition-from-firing-on-page-load -->
<script>
0
</script>
</body>
</html>