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
|
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Scale Effect</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>Shrink or grow an element by a percentage factor. </p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Scale the element to 0%, with the hide method (center vanishing point).<br />
</p>
<pre>
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/hide" title="UI/Effects/hide">hide</a>("scale", {}, 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
div { margin: 0px; width: 100px; height: 80px; background: green; border: 1px solid black; position: relative; }
</style>
<script>
$(document).ready(function() {
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/hide" title="UI/Effects/hide">hide</a>("scale", {}, 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<div id="demo" class="tabs-container" rel="170">
Scale the element to 200%, only horizontal.<br />
</p>
<pre>
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/effect" title="UI/Effects/effect">effect</a>("scale", { percent: 200, direction: 'horizontal' }, 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
div { margin: 0px; width: 100px; height: 80px; background: green; border: 1px solid black; position: relative; }
</style>
<script>
$(document).ready(function() {
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/effect" title="UI/Effects/effect">effect</a>("scale", { percent: 200, direction: 'horizontal' }, 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-direction">
<div class="option-header">
<h3 class="option-name"><a href="#option-direction">direction</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">"both"</dd>
</dl>
</div>
<div class="option-description">
<p>The direction of the effect. Can be "both", "vertical" or "horizontal".</p>
</div>
</li>
<li class="option" id="option-from">
<div class="option-header">
<h3 class="option-name"><a href="#option-from">from</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Object</dd>
</dl>
</div>
<div class="option-description">
<p>state at beginning, usually not needed.{ height: .., width: .. }</p>
</div>
</li>
<li class="option" id="option-origin">
<div class="option-header">
<h3 class="option-name"><a href="#option-origin">origin</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Array</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">['middle','center']</dd>
</dl>
</div>
<div class="option-description">
<p>the vanishing point, default for show/hide</p>
</div>
</li>
<li class="option" id="option-percent">
<div class="option-header">
<h3 class="option-name"><a href="#option-percent">percent</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">0/100</dd>
</dl>
</div>
<div class="option-description">
<p>the percentage to scale to, number.</p>
</div>
</li>
<li class="option" id="option-scale">
<div class="option-header">
<h3 class="option-name"><a href="#option-scale">scale</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">"both"</dd>
</dl>
</div>
<div class="option-description">
<p>Which areas of the element will be resized: 'both', 'box', 'content' Box resizes the border and padding of the element Content resizes any content inside of the element</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 10718 bytes
Post-expand include size: 14060 bytes
Template argument size: 8501 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2623-1!1!0!!en!2 and timestamp 20111125195213 -->
|