-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (103 loc) · 2.8 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
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
<!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>Css_boxshadow_generator</title>
<link rel="stylesheet" href="index.css" />
<script defer src="index.js"></script>
</head>
<body>
<nav>
Css Box Shadow Generator
<div>
<span>madeby-</span>
<span id="creator">Ravi Kumar Chopra</span>
</div>
</nav>
<div class="wrapper">
<css-doodle class="doodle">
:doodle { @grid: 100 / 100vmax; background: #0a0c27; font-family:
sans-serif; overflow: hidden; } :after { content: \@hex.@r(0x2500,
0x257f); color: hsla(@r360, 70%, 70%, @r.9); font-size: 8vmin; }
</css-doodle>
<div class="options">
<div class="opt">
<div class="l">
<label for="x">horizontal shadow</label>
<p id="xval">0</p>
</div>
<input
type="range"
id="x"
min="-50"
max="100"
step="2"
value="10"
oninput="changeit()"
/>
</div>
<div class="opt">
<div class="l">
<label for="y">vertical shadow</label>
<p id="yval">0</p>
</div>
<input
type="range"
id="y"
min="-50"
max="100"
step="2"
value="10"
oninput="changeit()"
/>
</div>
<div class="opt">
<div class="l">
<label for="blr">blur radius</label>
<p id="blrval">0</p>
</div>
<input
type="range"
id="blr"
min="-200"
max="200"
step="2"
value="30"
oninput="changeit()"
/>
</div>
<div class="opt">
<div class="l">
<label for="spr">spread radius</label>
<p id="sprval">0</p>
</div>
<input
type="range"
id="spr"
min="-200"
max="200"
step="2"
value="10"
oninput="changeit()"
/>
</div>
<div class="opt">
<div class="l">
<label for="clr">color</label>
<p id="clrval">#000000</p>
</div>
<input type="color" id="clr" oninput="changeit()" />
</div>
</div>
<div class="show">
<div id="card">
<img src="https://picsum.photos/200" alt="card" />
</div>
<div id="src_code">box-shadow:0px 0px 0px 0px #000000 ;</div>
</div>
</div>
<script src="https://unpkg.com/[email protected]/css-doodle.min.js"></script>
</body>
</html>