Jump to content
Search Community

Combustion

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Combustion

  1. Hi, 

    New to the javascript version of GSAP but have been using greensock for years

     

    Im trying to basically animate the scale of an image and also the opacity like this:

     

     

     

     

        $(document).ready(function(){
        
        $('.photo').mouseover(function (e){   
            TweenMax.to($(this), .2, {scaleX:1, scaleY:1, css:{opacity:1}});
        })
        $('.photo').mouseout(function (e){    
            TweenMax.to($(this), .2, {scaleX:0.8, scaleY:0.8, css:{opacity:0.7}});
        })
    
    
    })
     

    But it only seems to do the opacity, but if I take out the opacity it does the scale.
    am I missing something painfully obvious?

    thanks

    C

×
×
  • Create New...