Skip to content

Commit 87defba

Browse files
scottgonzalezjzaefferer
authored andcommitted
jQuery.effects.saveStyle: Initial docs
Ref gh-242 Ref gh-288
1 parent df6e53a commit 87defba

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

entries/jQuery.effects.saveStyle.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<entries>
3+
<entry type="method" name="jQuery.effects.saveStyle" added="1.12">
4+
<title>jQuery.effects.saveStyle()</title>
5+
<signature>
6+
<argument name="element" type="jQuery">
7+
<desc>The element to save styles for.</desc>
8+
</argument>
9+
</signature>
10+
<desc>Saves all inline styles applied to an element.</desc>
11+
<longdesc>
12+
<p>Stores a copy of the current inline styles applied to the element, which can be reapplied to the element later using <a href="/jQuery.effects.restoreStyle/"><code>jQuery.effects.restoreStyle()</code></a>. This is useful when animating various styles and restoring the existing styles at the end.</p>
13+
<p>When using <a href="/jQuery.effects.define/"><code>jQuery.effects.define()</code></a> to create an effect, if <code>jQuery.effects.saveStyle()</code> is used on the main element being animated, the styles will be restored automatically when the animation is complete.</p>
14+
</longdesc>
15+
<category slug="effects-core"/>
16+
<category slug="effects"/>
17+
</entry>
18+
</entries>

0 commit comments

Comments
 (0)