In this example, we'll use the Animation Utility in concert with StyleSheet to apply style changes to a group of elements in concert over time.
This example includes a
<style> element with some basic styling for the demo. We give the
<style> element an id which we'll reference when we instantiate the StyleSheet instance.
onTweenevent from an Anim instance
We'll just be using a raw instance of
YAHOO.util.Anim to leverage its timers and event structure. In particular, we'll subscribe to its
onComplete custom events.
Note: Logging and debugging is currently turned off for this example.