-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
209 lines (203 loc) · 8.81 KB
/
index.html
File metadata and controls
209 lines (203 loc) · 8.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS Filter Generator</title>
<!-- Mobile Specific Metas -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="convert color to css 3 filter">
<meta name="keywords" content="css3 filter, color converter">
<meta name="author" content="Emmanuel Chilaka, emmanuelchilaka779@gmail.com">
<meta name="reply-to" content="emmanuelchilaka779@gmail.com">
<meta name="owner" content="Emmanuel Chilaka">
<meta name="url" content="https://echilaka1.github.io">
<meta name="subject" content="CSS filter generator, from HEX code to CSS Filter">
<meta name="identifier-URL" content="https://echilaka1.github.io">
<meta name="topic" content="CSS Filter Generator | Use Method">
<meta name="coverage" content="Worldwide">
<!-- Libs CSS -->
<!-- <link rel="shortcut icon" type="image/png" href="assets/img/icon5.png"> -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="//platform-api.sharethis.com/js/sharethis.js#property=5c81401ed11c6a0011c48628&product=inline-share-buttons"></script>
</head>
<body>
<section class="nav-head">
<div class="container">
<div class="row">
<div class="col-md-9">
<p>Please share <div class="sharethis-inline-share-buttons"></div>
</p>
</div>
</div>
</div>
</section>
<section class="hero-bg">
<div class="container">
<div class="row">
<div class="col-md-12 bg-text text-center">
<h1>Quick CSS Filter Generator Using HEX</h1>
<p>EASY. ACCESSIBLE.</p><br>
<a href="#instruct">Instructions</a>
</div>
</div>
</div>
</section>
<section class="conversion-bg">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1>Target Hex Color</h1>
<input class="target" type="text" placeholder="target hex" value="#00a4d6"/><br><br>
<button class="execute">Compute Filters</button>
</div>
</div><br>
<div class="row">
<div class="col-sm-12 col-md-11 offset-md-1">
<div class="row">
<div class="col-md-6">
<p>Real pixel, color applied through CSS background-color:</p>
<div class="pixel realPixel"></div>
</div>
<div class="col-md-6">
<p>Filtered pixel, color applied through CSS filter:</p>
<div class="pixel filterPixel"></div>
<p class="filterDetail"></p>
<p class="lossDetail"></p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="instruction-bg">
<div class="container">
<div class="row" >
<div class="col-sm-12 col-md-10 offset-md-1">
<p>Instructions: From hex code to css 3 filter and its application in SVG </p>
</div>
</div>
<div class="row" id="instruct">
<div class="col-sm-12 col-md-10 offset-md-1">
<div class="row">
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=10jPn2VitUwR_ax_4e6mIIvp4TsdqBxPj" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 1: Get SVG</h1>
<p>Create or download SVG image</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=1UYHaOXoKTFU8ccDCOidmP60tLN_zE33a" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 2: Get SVG Code</h1>
<p>Copy the SVG code from the text document created or downloaded and add to your text editor</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=1yDqfJaIh14TpfKy25LNS6Oc-SD6s2Fur" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 3: Set ID or Class</h1>
<p>Give the SVG element an ID or Class</p>
</div>
</div>
</div>
</div><br>
<div class="row">
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=1pDMYmB9kKfDJpoouR6SJ1d3Qxdx-Q-m-" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 4: Get SVG Code</h1>
<p>Copy the SVG code from the text document created or downloaded and add to your text editor</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=1A2q_dtMl1pHLJtziNzTznyaIq7N4Vd1N" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 5: Convert HEX Code To CSS Filter</h1>
<p>Use the CSS filter generator to generate a CSS filter from the HEX code</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=1pIrbJcxkTaw_W6uRYmOU0e17r0Z-x_lo" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 6: Copy The Generated CSS Filter Code</h1>
<p>After the css code has been generated, copy the generated code.</p>
</div>
</div>
</div>
</div><br>
<div class="row">
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=1Yw2wGvmGAKdISEtv33glfFXgiAiy1HGE" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 7: Apply CSS Filter to SVG Class</h1>
<p>Copy the CSS filter code and apply to the class you gave to your SVG element</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="instruct-box">
<div class="instruct-image">
<img src="https://docs.google.com/uc?id=1tYcYHgKJRkZCdEfOdHCl_bJoX8QoE2RT" alt="Filter" class="img-fluid"/>
</div>
<div class="instruct-text">
<h1>Step 8: See Your SVG Changes</h1>
<p>After applying the CSS filter to the SVG class, the SVG element changes to the desired color you want</p>
</div>
</div>
</div>
</div>
</div>
</div><br>
<div class="row" >
<div class="col-sm-12 col-md-10 offset-md-1">
<p>CSS Filter is a powerful tool that developer & designers can use to achieve varying visual effects (sort of like Photoshop filters for the browser). The CSS filter property for me came as an alternative of changing SVG elements on hover and on selected or checked, without changing the SVG element </p>
</div>
</div>
</div>
</section>
<hr>
<section class="last-section">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1>Follow Me</h1>
<h2><a href="https://www.facebook.com/echilaka1/"><i class="fa fa-facebook"></i></a> <a href="https://www.instagram.com/echilaka1/"><i class="fa fa-instagram"></i></a> <a href="https://www.linkedin.com/in/echilaka1/"><i class="fa fa-linkedin"></i></a> <a href="https://www.twitter.com/echilaka1/"><i class="fa fa-twitter"></i></a> <a href="https://www.github.com/echilaka1/"><i class="fa fa-github"></i></a> </h2>
</div>
</div>
</div>
</section>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>