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.
<style>
nodeThis 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.
onTween
event from an Anim instanceWe'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 onTween
and onComplete
custom events.
You can load the necessary JavaScript and CSS for this example from Yahoo's servers. Click here to load the YUI Dependency Configurator with all of this example's dependencies preconfigured.
Note: Logging and debugging is currently turned off for this example.
Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Copyright Policy - Job Openings