Guest User

Untitled

a guest
Feb 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. var myTween = new Fx.Tween('myElement', 'background-color', { 'link': 'chain' });
  2. //fade myElement to red, then to white, then to blue
  3. myTween.start('#c03').start('#fff').start('#369');
  4.  
  5. var myMorph = new Fx.Morph('myElement', { 'link': 'cancel' });
  6. //transition myElement to red 16px sized text
  7. myMorph.start({ 'color': '#c03', 'font-size': 16 });
  8. //a few ms later... stop right there! make that blue 10px text with a height of 100px
  9. myMorph.start({ 'color': '#369', 'font-size': 10, 'height': 100 });
Add Comment
Please, Sign In to add comment