Created
September 17, 2008 19:55
-
-
Save subtleGradient/11296 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var myTween = new Fx.Tween('myElement', 'background-color', { 'link': 'chain' }); | |
| //fade myElement to red, then to white, then to blue | |
| myTween.start('#c03').start('#fff').start('#369'); | |
| var myMorph = new Fx.Morph('myElement', { 'link': 'cancel' }); | |
| //transition myElement to red 16px sized text | |
| myMorph.start({ 'color': '#c03', 'font-size': 16 }); | |
| //a few ms later... stop right there! make that blue 10px text with a height of 100px | |
| myMorph.start({ 'color': '#369', 'font-size': 10, 'height': 100 }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment