-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
174 lines (147 loc) · 3.85 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jQuery.growFrom / shrinkTo dem</title>
<meta name="author" content="Webpop">
<style type="text/css">
* {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
body {
background: #e5e5e5 url('demo/bg.png');
}
#outer {
text-align:center;
width: 700px;
margin: 0 auto;
}
#container {
text-align: left;
}
h1 {
font-size: 40px;
font-weight: 500;
color: #333;
text-shadow:#fff 0px 1px 0px;
margin: 10px 0 0 0;
padding: 0;
letter-spacing: -1px;
}
h2 {
font-size: 28px;
font-weight: 300;
color: #333;
text-shadow:#fff 0px 1px 0px;
margin: 0 0 10px 0;
letter-spacing: -1px;
}
p {
font-size: 14px;
color: #333;
text-shadow: #fff 0px 1px 0px;
}
dt {
font-size: 16px;
font-weight: bold;
color: #333;
text-shadow: #fff 0px 1px 0px;
float: left;
}
dd {
font-size: 13px;
font-weight: normal;
color: #444;
text-shadow: #fff 0px 1px 0px;
padding-top: 4px;
margin: 0px 0px 10px 50px;
}
dd.quote {
background: rgba(0, 0, 0, 0.1);
padding: 5px 10px;
}
hr {
border: 0 none;
width: 100%;
height: 1px;
background: rgba(0,0,0,0.2);
border-bottom: 1px solid white;
}
a, a:visited {
color: #333;
text-shadow: #fff 0px 1px 0px;
text-decoration: none;
}
a, label {
font-weight: bold;
border-bottom: 1px solid #666;
cursor: pointer;
}
a:hover, label:hover {
color: #666;
border-bottom: 1px solid #aaa;
}
#src {
width: 100px;
height: 100px;
cursor: pointer;
}
#other {
float: right;
margin-top: 10px;
background: rgba(0, 0, 0, 0.1);
padding: 10px 20px;
}
#dest {
width: 710px;
height: 460px;
background: white;
padding: 10px;
position: absolute;
display: none;
top: 100px;
left: 400px;
font: normal 12px/18px Georgia, Times, serif;
-moz-box-shadow: 0 0 30px 4px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: 0 0 30px 4px rgba(0, 0, 0, 0.4);
box-shadow: 0 0 30px 4px rgba(0, 0, 0, 0.4);
}
#dest p {
margin: 0px;
}
</style>
<script type="text/javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery.growshrink.js"></script>
<script type="text/javascript" src="demo/demo.js"></script>
</head>
<body>
<div id="outer">
<div id="container">
<h1>Demo for <strong>growFrom</strong> / <strong>shrinkTo</strong></h1>
<p>Click on the <strong>Webpop</strong> logo below to trigger the <code>#dest</code> layer using <strong>growFrom</strong>.</p>
<p>Hey! You can <input type="checkbox" name="slow" id="slow"><label for="slow">slow down the effect</label> to see how the transform works.</p>
<div id="other">
<p>Or <a href="">click here</a> to trigger using a link<br/>
(Note that it grows from the link bounding box)</p>
</div>
<div id="src"><img src="demo/thumb-webpop.png" width="100" height="100" alt="Thumb Webpop"></div>
<p>There is also a <a href="demo/index.html">demo for a tweaked FancyBox</a> plugin.</p>
<hr />
<h2>Changelog</h2>
<dl>
<dt>v0.2</dt>
<dd>Adds support for 3D transforms (Hardware accelerated in Webkit).</dd>
<dd class="quote"><strong>Note:</strong> To enable GPU accelerated 3D transforms in Chrome, navigate
to "<strong>about:flags</strong>" and enable "<strong>GPU Accelerated Compositing</strong>". You may need to restart the
browser to apply changes.
</dd>
</dl>
<div id="dest">
<img src="demo/image-webpop.jpg" width="710" height="440" alt="Image Webpop">
<p>Click <a href="http://www.webpop.com/">here</a> to visit Webpop or >> <a id="close" href="#">Close window</a>
</div>
</div>
</div>
</body>
</html>