-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (26 loc) · 1.16 KB
/
index.html
File metadata and controls
29 lines (26 loc) · 1.16 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
<!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">
<link rel="stylesheet" href="style.css">
<script defer src="main.js"></script>
<title>CSS Variables</title>
</head>
<body>
<h2>Update CSS Variables with <span class="hl">JavaScript</span></h2>
<div class="controls">
<label for="spacing">Spacing:</label>
<input type="range" name="spacing" id="spacing" min="10" max="200" value="10" data-sizing="px">
<label for="blur">Blur:</label>
<input type="range" name="blur" id="blur" min="0" max="25" value="0" data-sizing="px">
<label for="radius">Border Radius:</label>
<input type="range" name="radius" id="radius" min="0" max="400" value="2" data-sizing="px">
<label for="base">Base Color:</label>
<input type="color" name="base" id="base" value="#F8333C">
</div>
<!-- <img src="https://picsum.photos/600/400" alt="Random image"> -->
<img src="https://source.unsplash.com/600x400/?love,joy,enjoy" alt="Random image">
</body>
</html>