-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageFilter.html
More file actions
60 lines (60 loc) · 1.34 KB
/
ImageFilter.html
File metadata and controls
60 lines (60 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<title>Filtered images</title>
<style type="text/css">
body{
margin: 0;
/*centers the inline-blocks */
text-align: center;
}
div {
padding: 10px;
margin-top: 5px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
vertical-align: top;
width: 45%;
text-align: left;
background-color: lightblue;
border-radius: 10px;
}
.elephant {
float: right;
margin: 0 0 10px 10px;
}
#grayscale {
-webkit-filter: grayscale(.8);
filter: grayscale(.8);
}
#sepia {
-webkit-filter: sepia(1);
filter: sepia(1);
}
#hue-rotate {
-webkit-filter: hue-rotate(270deg);
filter: hue-rotate(270deg);
}
</style>
</head>
<body>
<div>
<h2>Original</h2>
<img class="elephant" src="images/elephant.jpg" align="elephant" width="250px" height="250px" />
</div>
<div>
<h2>Grayscale</h2>
<img class="elephant" id="grayscale" src="images/elephant.jpg" align="elephant" width="250px" height="250px" />
</div>
<div>
<h2>Sepia</h2>
<img class="elephant" id="sepia" src="images/elephant.jpg" align="elephant" width="250px" height="250px" />
</div>
<div>
<h2>Hue-rotate</h2>
<img class="elephant" id="hue-rotate" src="images/elephant.jpg" align="elephant" width="250px" height="250px" />
</div>
</body>
</html>