Permalink
Browse files

Moved common class animation descripiton into includes.

  • Loading branch information...
1 parent 76825b1 commit 571eae1c7e40ecbbea4333583164e7a3291a17ae @scottgonzalez scottgonzalez committed Aug 28, 2012
Showing with 6 additions and 4 deletions.
  1. +1 −1 entries/addClass.xml
  2. +1 −1 entries/removeClass.xml
  3. +1 −1 entries/switchClass.xml
  4. +1 −1 entries/toggleClass.xml
  5. +2 −0 includes/class-animation-desc.xml
View
@@ -3,7 +3,7 @@
<title>.addClass()</title>
<desc>Adds the specified class(es) to each of the set of matched elements while animating all style changes.</desc>
<longdesc>
- <p>Similar to native CSS transitions, jQuery UI's class animations provide a smooth transition from one state to another while allowing you to keep all the details about which styles to change in CSS and out of your JavaScript. All class animation methods, including <code>.addClass()</code>, support custom durations and easings, as well as providing a callback for when the animation completes.</p>
+ <xi:include href="../includes/class-animation-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</longdesc>
<signature>
<argument name="className" type="String">
View
@@ -3,7 +3,7 @@
<title>.removeClass()</title>
<desc>Removes the specified class(es) from each of the set of matched elements while animating all style changes.</desc>
<longdesc>
- <p>Similar to native CSS transitions, jQuery UI's class animations provide a smooth transition from one state to another while allowing you to keep all the details about which styles to change in CSS and out of your JavaScript. All class animation methods, including <code>.removeClass()</code>, support custom durations and easings, as well as providing a callback for when the animation completes.</p>
+ <xi:include href="../includes/class-animation-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</longdesc>
<signature>
<argument name="className" type="String">
View
@@ -4,7 +4,7 @@
<desc>Adds and removes the specified class(es) to each of the set of matched elements while animating all style changes.</desc>
<longdesc>
<p>The <code>.switchClass()</code> method allows you to animate the transition of adding and removing classes at the same time.</p>
- <p>Similar to native CSS transitions, jQuery UI's class animations provide a smooth transition from one state to another while allowing you to keep all the details about which styles to change in CSS and out of your JavaScript. All class animation methods, including <code>.switchClass()</code>, support custom durations and easings, as well as providing a callback for when the animation completes.</p>
+ <xi:include href="../includes/class-animation-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</longdesc>
<signature>
<argument name="removeClassName" type="String">
View
@@ -3,7 +3,7 @@
<title>.toggleClass()</title>
<desc>Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument, while animating all style changes.</desc>
<longdesc>
- <p>Similar to native CSS transitions, jQuery UI's class animations provide a smooth transition from one state to another while allowing you to keep all the details about which styles to change in CSS and out of your JavaScript. All class animation methods, including <code>.toggleClass()</code>, support custom durations and easings, as well as providing a callback for when the animation completes.</p>
+ <xi:include href="../includes/class-animation-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</longdesc>
<signature>
<argument name="className" type="String">
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<p>Similar to native CSS transitions, jQuery UI's class animations provide a smooth transition from one state to another while allowing you to keep all the details about which styles to change in CSS and out of your JavaScript. All class animation methods, including <code>.<placeholder name="name"/>()</code>, support custom durations and easings, as well as providing a callback for when the animation completes.</p>

0 comments on commit 571eae1

Please sign in to comment.