basic.mustache revision 3883a992e58e3629e15903ab299e20fce8483e2c
4632N/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>
<p>Clicking the toggle control should start the animation, so we'll need to handle that click, including preventing the default action of following the url.</p>
anim.run();
Y.one('#demo .yui3-remove').on('click', onClick);