-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshadow.html
More file actions
60 lines (55 loc) · 1.48 KB
/
shadow.html
File metadata and controls
60 lines (55 loc) · 1.48 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>
<style>
h1 {
text-shadow: 5px 5px 0px #FF0000;
}
#robbie {
background-image: url(https: ; //s3-us-west-2.amazonaws.com/s.cdpn.io/4273/wall-texture.jpg
);
display: inline-block;
background-repeat: no-repeat;
background-size: cover;
}
#robbie img {
filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12,Color='#444')";
filter: url(#drop-shadow);
-webkit-filter: drop-shadow(120px 12px 20px rgba(0,0,0,0.5));
filter: drop-shadow(120px 12px 20px rgba(0,0,0,0.5));
}
</style>
</head>
<body>
<div id="robbie">
<img src="http://pngimg.com/uploads/leopard/leopard_PNG14830.png" alt>
</div>
<svg height="0" xmlns="http://www.w3.org/2000/svg">
<filter id="drop-shadow">
<feGaussianBlur in="SourceAlpha" stdDeviation="2.2"/>
<feOffset dx="12" dy="12" result="offsetblur"/>
<feFlood flood-color="rgba(0,0,0,0.5)"/>
<feComposite in2="offsetblur" operator="in"/>
<feMerge>
<feMergeNode/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
</svg>
<div id="robbie">
<img src="http://pngimg.com/uploads/leopard/leopard_PNG14830.png" alt>
</div>
<svg height="0" xmlns="http://www.w3.org/2000/svg">
<filter id="drop-shadow">
<feGaussianBlur in="SourceAlpha" stdDeviation="2.2"/>
<feOffset dx="12" dy="12" result="offsetblur"/>
<feFlood flood-color="rgba(0,0,0,0.5)"/>
<feComposite in2="offsetblur" operator="in"/>
<feMerge>
<feMergeNode/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
</svg>
</body>
</html>