I am trying to get this to work:
$('#something').hover(function(){
gsap.to(this,{duration: 1, width: 200, height: 200, transformOrigin: "center center"});
}, function(){
gsap.to(this,{duration: 1.2, scale:1, transformOrigin: "center center"});
});
But my syntax don't seem to be quite right?
Essentially I want many different elements of different sizes (containing jpg-images, if that matters) to scale up to the same size 200x200px when hovering over them. They scale down to their original size when mouse leaves them.