-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (45 loc) · 1.15 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
<!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>Playing with CSS Variables & Javascript</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<h2>
Update CSS Variables with
<span class="hl">JS</span>
</h2>
<div class="controls">
<label for="spacing">Spacing:</label>
<input
type="range"
name="spacing"
id="spacing"
min="0"
max="200"
value="20"
data-sizing="px"
;
/>
<label for="blur">Blur:</label>
<input
type="range"
name="blur"
id="blur"
min="0"
max="200"
value="20"
data-blur="px"
/>
<label for="base">Base Color</label>
<input type="color" name="base" id="base" value="#ffc600" />
</div>
<img src="main-img.jpg" alt="" />
</div>
<script src="script.js"></script>
</body>
</html>