-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsliders.html
More file actions
92 lines (78 loc) · 2.62 KB
/
sliders.html
File metadata and controls
92 lines (78 loc) · 2.62 KB
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
<!DOCTYPE html>
<html>
<head>
<style>
input.supra-rainbow {
-webkit-appearance: none;
background-image: linear-gradient(to right, #ff0000, #ff9900, #ffff00, #6aa84f, #0000ff, #9900ff, #674ea7);
height: 32px;
width: 400px;
}
input.supra-greyscale {
-webkit-appearance: none;
background-image: linear-gradient(to right, #ffffff, #000000);
height: 32px;
width: 400px;
}
::-webkit-slider-thumb {
-webkit-appearance: none;
width:30px;
height: 30px;
background: rgba(99, 16, 99, 0.61);
}
.circle::-webkit-slider-thumb {
clip-path: circle(50% at 50% 50%);
}
.triangle::-webkit-slider-thumb {
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.square::-webkit-slider-thumb {
clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
}
.pentagon::-webkit-slider-thumb {
clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.hexagon::-webkit-slider-thumb {
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.heptagon::-webkit-slider-thumb {
clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
}
.octagon::-webkit-slider-thumb {
clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
p{
margin: 1px;
padding: 1px;
}
</style>
</head>
<body>
<header>
<h1 style="text-align: center;">SupraSliders</h1>
</header>
<div style="text-align: center;">
<p>
<input type="range" min="-50" max="50" value="0" class="supra-rainbow circle" />
</p>
<p>
<input type="range" min="-50" max="50" value="0" class="supra-greyscale triangle" />
</p>
<p>
<input type="range" min="-50" max="50" value="0" class="supra-greyscale square" />
</p>
<p>
<input type="range" min="-50" max="50" value="0" class="supra-greyscale pentagon" />
</p>
<p>
<input type="range" min="-50" max="50" value="0" class="supra-greyscale hexagon" />
</p>
<p>
<input type="range" min="-50" max="50" value="0" class="supra-greyscale heptagon" />
</p>
<p>
<input type="range" min="-50" max="50" value="0" class="supra-greyscale octagon" />
</p>
</div>
</body>
</html>