Jump to content
GreenSock

cthulhu last won the day on October 10 2012

cthulhu had the most liked content!

cthulhu

Members
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by cthulhu

  1. Hi gs forums I'm having a lot of trouble with the css plugin. Hoping you can help. I have an absolute positioned element and I need to use fromTo on top, left and rotate. Where am I going wrong?

     

    TweenLite.fromTo(photo, 1, css:{left: '50', top:'100', rotation:0}, css:{left: '55', top:'382', rotation:7, ease:Expo.easeOut, onComplete:function(){}});

    • Like 1
  2. As a control, the following line in my code works perfectly

    var myTween = new TweenLite.to(photo, 1.5, {width:100, height:200, paused:true});

     

    but when I change it to any of the following it doesn't work

     

    var myTween = new TweenLite.to(photo, 1.5, {marginLeft:'200px', paused:true});

    var myTween = new TweenLite.to(photo, 1.5, {marginLeft: 200, paused:true});

     

    and the following kicks an error

     

    var myTween = new TweenLite.to(photo, 1.5, {margin-left:'200px', paused:true});

    var myTween = new TweenLite.to(photo, 1.5, {margin-left: 200, paused:true});

  3. I'm having trouble using object oriented TweenLite.fromTo and the paused:true parameter. The following doesn't work

     

    var myTween = new TweenLite.fromTo(photo, 1.5, {width:0, height:0, paused:true}, {width:100, height:200});

     

    In what way should paused:true be correctly applied?

×