|
7 | 7 | <argument name="properties" type="PlainObject"> |
8 | 8 | <desc>A map of CSS properties that the animation will move toward.</desc> |
9 | 9 | </argument> |
10 | | - <argument name="duration" type="String,Number" optional="true"> |
11 | | - <desc>A string or number determining how long the animation will run.</desc> |
12 | | - </argument> |
13 | | - <argument name="easing" type="String" optional="true"> |
14 | | - <desc>A string indicating which easing function to use for the transition.</desc> |
15 | | - </argument> |
16 | | - <argument name="complete" type="Function" optional="true"> |
17 | | - <desc>A function to call once the animation is complete.</desc> |
18 | | - </argument> |
| 10 | + <argument name="duration" type="Option"/> |
| 11 | + <argument name="easing" type="Option"/> |
| 12 | + <argument name="complete" type="Option"/> |
19 | 13 | </signature> |
20 | 14 | <signature> |
21 | 15 | <added>1.0</added> |
22 | 16 | <argument name="properties" type="PlainObject"> |
23 | 17 | <desc>A map of CSS properties that the animation will move toward.</desc> |
24 | 18 | </argument> |
25 | | - <argument name="options" type="PlainObject"> |
26 | | - <desc>A map of additional options to pass to the method. Supported keys: |
27 | | - <ul><li><code>duration</code>: A string or number determining how long the animation will run.</li><li><code>easing</code>: A string indicating which easing function to use for the transition.</li><li><code>complete</code>: A function to call once the animation is complete.</li><li><code>step</code>: A function to be called after each step of the animation.</li><li><code>queue</code>: A Boolean indicating whether to place the animation in the effects queue. If <code>false</code>, the animation will begin immediately. <strong>As of jQuery 1.7</strong>, the <code>queue</code> option can also accept a string, in which case the animation is added to the queue represented by that string.</li><li><code>specialEasing</code>: A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions (added 1.4).</li></ul> |
28 | | - </desc> |
| 19 | + <argument name="options" type="Options"> |
| 20 | + <desc>A map of additional options to pass to the method.</desc> |
29 | 21 | </argument> |
30 | 22 | </signature> |
| 23 | + |
| 24 | + <options> |
| 25 | + <option name="duration" type="Number|String" default="400"> |
| 26 | + <desc>A string or number determining how long the animation will run.</desc> |
| 27 | + </option> |
| 28 | + <option name="easing" type="String" default="swing"> |
| 29 | + <desc>A string indicating which easing function to use for the transition.</desc> |
| 30 | + </option> |
| 31 | + <option name="complete" type="Function"> |
| 32 | + <desc>A function to call once the animation is complete.</desc> |
| 33 | + <!-- no parameters --> |
| 34 | + </option> |
| 35 | + <option name="step" type="Function"> |
| 36 | + <desc>A function to be called after each step of the animation.</desc> |
| 37 | + <parameter name="now" type="Number"> |
| 38 | + <desc>The numeric value of the property being animated at each step</desc> |
| 39 | + </parameter> |
| 40 | + <parameter name="fx" type="PlainObject"> |
| 41 | + <desc>A map of properties related to the animation and the element being animated</desc> |
| 42 | + <property name="elem" type="DOM"> |
| 43 | + <desc>The animated element</desc> |
| 44 | + </property> |
| 45 | + <property name="start" type="Number"> |
| 46 | + <desc>The first value of the animated property</desc> |
| 47 | + </property> |
| 48 | + <property name="end" type="Number"> |
| 49 | + <desc>The last value of the animated property</desc> |
| 50 | + </property> |
| 51 | + <property name="prop" type="String"> |
| 52 | + <desc>The property being animated</desc> |
| 53 | + </property> |
| 54 | + </parameter> |
| 55 | + </option> |
| 56 | + <option name="queue" type="Boolean" default="true"> |
| 57 | + <desc>A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. <strong>As of jQuery 1.7</strong>, the queue option can also accept a string, in which case the animation is added to the queue represented by that string.</desc> |
| 58 | + </option> |
| 59 | + <option name="specialEasing" type="PlainObject"> |
| 60 | + <desc>A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions (added 1.4).</desc> |
| 61 | + </option> |
| 62 | + </options> |
| 63 | + |
31 | 64 | <longdesc> |
32 | 65 | <p>The <code>.animate()</code> method allows us to create animation effects on any numeric CSS property. The only required parameter is a map of CSS properties. This map is similar to the one that can be sent to the <code>.css()</code> method, except that the range of properties is more restrictive.</p> |
33 | 66 | <h4 id="animation-properties">Animation Properties and Values</h4> |
|
0 commit comments