This repository was archived by the owner on Jun 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
74 lines (55 loc) · 1.53 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Frosted Glass</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="wrap">
<h1>Frosted Glass Techniques</h1>
<p>because blur.</p>
<hr/>
<div id="nav">
<ul>
<li>
<a href="./index.html">Technique #1</a>
</li>
<li>
<a href="./technique2.html">Technique #2</a>
</li>
</ul>
</div>
<hr/>
<h2>Technique #1</h2>
<p>Take a regular background image</p>
<p><img src="back.jpg" width="160px" height="90px;"></p>
<p>and blur it however you like in Gimp/Photoshop:</p>
<p><img src="back-.jpg" width="160px" height="90px;"></p>
<p>Save the original and blurred image.</p>
<p>Set the body's background to the original image<br/>
and the div's background to the blurred image.</p>
<h3>CSS</h3>
<pre>
body {
background: url('original_background.jpg') no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
}
.my_div {
background: url('blurred_background.jpg') no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
/* Set the width/height so you can check it out. */
width: 70%;
height: 200px;
margin: 12% auto;
}
</pre>
<p><small>magik.</small></p>
<h4>Check out the other techniques if you don't like manually blurring images.</h4>
</div>
</body>
</html>