Forum Discussion
DolandRuiz
3 years agoCommunity Member
Animating the size of an object
I've gone through the threads and read some super old 9y posts but there are no real solutions to simply animate the size of an object.
I've looked into the method of duplicating the object and th...
MathNotermans-9
3 years agoCommunity Member
Some dummy code that should get you started
var myEl = document.querySelector("[data-acc-text='some.png']");
gsap.to(myEl,{duration:2,scale:2});
As i made this code on my phone it might have typos
- DolandRuiz3 years agoCommunity Member
wowzers it worked. Thanks!! Any way to specify the anchor point? Such as, I want it to grow from the top left corner.
- DolandRuiz3 years agoCommunity Member
I tried adding a Motion path that moves the image down/right at the same cue point as the java but it didn't work. It does the enlarging first (from the center) and then it resets in size and just moves the original small size down/right.