Added small description of animate method
authorDmitry Baranovskiy <dbaranovskiy@Fresh-Air.sydney.atlassian.com>
Wed, 7 Jan 2009 22:56:50 +0000 (09:56 +1100)
committerDmitry Baranovskiy <dbaranovskiy@Fresh-Air.sydney.atlassian.com>
Wed, 7 Jan 2009 22:56:50 +0000 (09:56 +1100)
reference.html

index 34d485b..f22a6e6 100644 (file)
                         <pre class="javascript code"><code>var c = paper.circle(10, 10, 10);</code>
 <code>c.attr("fill", "black");</code>
 <code>c.attr({fill: "#000", stroke: "#f00", opacity: 0.5});</code></pre>
+                        <h3 id="animate">
+                            animate
+                        </h3>
+                        <p>
+                            Linearly changes attribute from current to specified in given amount of milliseconds.
+                        </p>
+                        <h4>Parameters</h4>
+                        <ol>
+                            <li>newAttrs <em>object</em></li>
+                            <li>ms <em>number</em></li>
+                            <li>callback <em>function</em> [optional]</li>
+                        </ol>
+                        <h4>Usage</h4>
+                        <pre class="javascript code"><code>var c = paper.circle(10, 10, 10);</code>
+<code>c.animate({cx: 20, r: 20}, 2000);</code></pre>
                         <h3 id="getBBox">
                             getBBox
                         </h3>
                             <li>
                                 <a href="reference.html#attr"><code>attr</code></a>
                             </li>
+                            <li>
+                                <a href="reference.html#attr"><code>animate</code></a>
+                            </li>
                             <li>
                                 <a href="reference.html#getBBox"><code>getBBox</code></a>
                             </li>