-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (124 loc) · 6.81 KB
/
index.html
File metadata and controls
145 lines (124 loc) · 6.81 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<title>Dynamic Clip Path Shape Generator</title>
<link rel="stylesheet" href="style.css">
<!-- icons from ion-icons -->
<script type='module' src='https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js'></script>
<script nomodule src='https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js'></script>
<!-- driver site Tour animation -->
<script src="https://cdn.jsdelivr.net/npm/driver.js@latest/dist/driver.js.iife.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/driver.js@latest/dist/driver.css"/>
<!-----swiper css----->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css"/>
</head>
<body>
<div class="background">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div id="modal-container">
<div class="modal-background">
<div class="modal">
<h2>instructions</h2>
<!-- <textarea name="" id="prompt-input" cols="" rows=""></textarea> -->
<div class="step active">Step 1: Simply set the position of the Points by sliding the bars of X and Y cordinates from the right side.</div>
<div class="step">Step 2: Double click between the two points (vertices) on any side to create new point and Drag to set its position.</div>
<div class="step">Note: Green point show the starting or First Point of the Shape.</div>
<div class="step">Step 4: Right click on a point to delete.</div>
<div class="step">Step 5: Copy single line code to create the exact same shape.</div>
<div class="buttons">
<button class="btn" id="next" onclick="changeStep(1)">Next</button>
<button class="btn" id="prev" onclick="changeStep(-1)" disabled>Previous</button>
</div>
<button class="close"><ion-icon name="close"></ion-icon></button>
</div>
</div>
</div>
<button id="menu"><ion-icon name="close"></ion-icon></button>
<main>
<div class="left">
<h2>Dynamic Clip Path Shape Generator</h2>
<div class="container">
<div class="shape-container" id="shape"></div>
</div>
<!-- <div id="example1"></div>
<div id="example2"></div> -->
<div class="card">
<div class="header">
<div class="top">
<div class="circle">
<span class="red circle2"></span>
</div>
<div class="circle">
<span class="yellow circle2"></span>
</div>
<div class="circle">
<span class="green circle2"></span>
</div>
<div class="title">
<p id="title2">style.css</p>
</div>
</div>
<div class="instruction" id="instructions"><button class="btn" onclick="handleClick('two')">How to use?</button></div>
</div>
<div class="code-container">
<textarea readonly="" name="code" id="code" class="area">
</textarea>
</div>
</div>
</div>
<div class="right">
<div class="controls">
<div class="action">
<!-- <button class="btn" onclick="handleClick('two')">Revealing</button> -->
<button class="btn" onclick="undo()" id="undoBtn" title="undo" disabled><svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 -960 960 960" width="16px" fill="#fff"><path d="M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z"/></svg></button>
<button class="btn" onclick="redo()" id="redoBtn" title="redo" disabled><svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 -960 960 960" width="16px" fill="#fff"><path d="M396-200q-97 0-166.5-63T160-420q0-94 69.5-157T396-640h252L544-744l56-56 200 200-200 200-56-56 104-104H396q-63 0-109.5 40T240-420q0 60 46.5 100T396-280h284v80H396Z"/></svg></button>
<button class="btn" title="Reset Shape" onclick="resetShape()"><svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 -960 960 960" width="16px" fill="#fff"><path d="M520-330v-60h160v60H520Zm60 210v-50h-60v-60h60v-50h60v160h-60Zm100-50v-60h160v60H680Zm40-110v-160h60v50h60v60h-60v50h-60Zm111-280h-83q-26-88-99-144t-169-56q-117 0-198.5 81.5T200-480q0 72 32.5 132t87.5 98v-110h80v240H160v-80h94q-62-50-98-122.5T120-480q0-75 28.5-140.5t77-114q48.5-48.5 114-77T480-840q129 0 226.5 79.5T831-560Z"/></svg></button>
</div>
<div class="action">
<button class="btn" title="Toggle Shape Image" onclick="shapeImage()">Image</button>
<button class="btn" title="Show/Hide points" onclick="togglePoints()">Toggle Points</button>
<input title="Shape Color" type="color" value="#ADD8E6" id="colorPicker">
</div>
<div class="container-controls">
<div class="input-container">
<label for="">Width:</label>
<input type="range" min="0" max="1000" value="400" class="container-width-input">
<span class="width-value">400</span>
</div>
<div class="input-container">
<label for="">Height</label>
<input type="range" min="0" max="1000" value="400" class="container-height-input">
<span class="height-value">400</span>
</div>
</div>
</div>
<div id="sliders" id="sliders"></div>
</div>
</main>
<div id="notificationContainer"></div>
<script src="https://unpkg.com/scrollreveal"></script>
<script src="script.js"></script>
</body>
</html>