-
Notifications
You must be signed in to change notification settings - Fork 3
/
Random_led.html
148 lines (143 loc) · 3.66 KB
/
Random_led.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" href="Image/logo.png">
<title>Random Led blink</title>
</head>
<div class="slide">
<label for="dimmer">Dimmer</label>
<input type="range" min="0.3" max="1.0" step="0.1" value="1.0" class="dimmer" id="dimmer">
</div>
<button class="lightSwitch">Lights On!</button>
<div class="container">
<hr>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
<div class="light"></div>
</div>
<div class="bottomright">
<p style="color: aquamarine;">Made with ❤️ by Random Script</p>
<div>
<script src="Script.js/Random_led.js"></script>
<style>
body {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #000 linear-gradient(transparent 5%, rgba(0, 27, 102, 0.9));
font-size: 12px;
font-weight: lighter;
}
.bottomright {
position: absolute;
bottom: 8px;
right: 16px;
font-size: 18px;
}
label, button {
letter-spacing: 2px;
text-transform: uppercase;
color: #fff;
padding: 5px 10px;
}
.slide {
position: absolute;
top: 0;
left: 0;
padding: 25px;
right: 50%;
}
.slide .dimmer {
transition: all 0.3s linear;
-webkit-appearance: none;
width: 100%;
height: 5px;
margin: 10px 0 0 0;
opacity: 0.7;
border-radius: 3px;
border: 1px solid #5888a9;
background: #464646;
}
.slide .dimmer:hover {
opacity: 1;
}
.slide .dimmer::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 15px;
height: 20px;
border-radius: 50%;
background: #fff;
cursor: pointer;
}
button {
color: #000;
transition: all 0.3s linear;
border: 2px solid rgba(88, 136, 169, 1);
background: #ddd;
position: absolute;
top: 25px;
right: 25px;
border-radius: 3px;
cursor: pointer;
}
button:hover {
background: rgba(88, 136, 169, 0.5);
color: #ddd;
}
.container {
width: 100%;
height: 45px;
display: flex;
position: relative;
flex-direction: vertical;
justify-content: space-evenly;
}
.container hr {
position: absolute;
top: -3px;
height: 4px;
width: 100%;
background-color: #103718;
border: none;
border-bottom: 1px solid #547c55;
margin: 0;
}
.container .light {
position: relative;
z-index: 0;
width: 20px;
border-radius: 100%;
transition: all 0.4s linear;
background-image: radial-gradient(circle closest-side, transparent, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7) 180%);
background-color: #000;
box-shadow: 0 0 40px 0 rgba(255, 255, 255, 0.1), 0 20px 80px 8px rgba(15, 240, 255, 0.5);
}
.container .light:before {
content: "";
position: absolute;
background: #103718 radial-gradient(circle closest-side, transparent, rgba(0, 0, 0, 0.4) 100%);
width: 16px;
height: 8px;
margin: 0;
border-radius: 5px 5px 0 0;
top: -1px;
left: 9%;
}
</style>