Jump to content

victor hugo

  • Posts

  • Joined

  • Last visited

victor hugo's Achievements



  1. It looks like I made three mistakes. 1 ) Not using the CSS Plugin 2 ) Not putting my values in quotes 3 ) Not putting px after the value. It should have been : TweenLite.to(content1, 1.5, {css:{width:"100px", height:"100px",x:"100px", y:"100px"}}); Thanks for the help.
  2. I'm trying to create a tween. I was looking at the tutorials here : http://forums.greensock.com/topic/6095-example-html-banner-using-greensock-js-beta/ And they all involve TweenLite, TimeLineLite, CSSPlugins, and EasePack. Is it possible to create Tweens with just TweenLite? Here is the code I wrote and it doesn't work. <style type="text/css"> #content { background-color:#FFFFFF; width:300px; height:30px; padding:3px; border-style:solid; border-width:medium; } </style> <script type="text/javascript" src="http://img-cdn.mediaplex.com/0/20225/150045/TweenLite.min.js"></script> <div id="content">My Account</div> <script type="text/javascript"> var content1 = document.getElementById("content"); TweenLite.to(content1, 1.5, {width:200, height:200}); </script> </div> Thank You