Jump to content
Search Community

Noahdecoco

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Noahdecoco

  1. Hi,

     

    How can I get the actual width of an element after scaling it with Tweenmax?

     

    Example:

    $('#myDiv').width(100); // Sets width of #myDiv to 100;
    
    TweenMax.set($('#myDiv'), {scale:1.2});
    
    console.log($('#myDiv').width()); // gives 100 instead of 120
    

    How can I get the actual width of the div?

     

    Thanks a lot in advance, this thing is frustrating me and breaking my head today...

     

     

×
×
  • Create New...