822N/A <p>This demonstrates how to use the <code>easing</code> attribute to change the behavior of the animation.</p>
822N/A <p> Click the icon in the header to shrink the element's <code>height</code> to zero with the "backIn" effect.</p>
235N/A<h2>Setting up the HTML</h2>
235N/A<p>First we add some HTML to animate.</p>
235N/A<h2>Creating the Anim Instance</h2>
235N/A<p>Now we create an instance of <code>
Y.Anim</code>, passing it a configuration object that includes the <code>node</code> we wish to animate and the <code>to</code> attribute containing the final properties and their values.</p>
235N/A node: '#demo .yui3-bd',
235N/A<h2>Running the Animation</h2>
235N/A<p>Finally we add an event handler to run the animation.</p>
235N/Avar onClick = function(e) {
235N/AY.one('#demo .yui3-toggle').on('click', onClick);
235N/A<h2>Complete Example Source</h2>