Jump to content
GreenSock

xassagfd

Resize object with Adobe Animate and GreenSock

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have imported a png into my Adobe Animate project and converted to symbol. I'd like animate the resize of it, but it doesn't work (I tried width and height). Other things like rotation and move work.

Link to comment
Share on other sites

Cool, happy to hear you worked it out.

Link to comment
Share on other sites

Welcome to the Forums,

 

Just so you know the reason it didn't work is because everything you create in Animate is ultimately rendered to canvas using the open-source EaselJS library.

http://www.createjs.com/easeljs

 

EaselJS provides a quite convenient API which allows you to use code to manipulate / control these objects. When you integrate GSAP into Animate projects you end up tweening properties of EaselJS objects.

 

However, EaselJS DisplayObjects do not have width and height properties which is why you can not animate them with GSAP.

 

http://www.createjs.com/docs/easeljs/classes/DisplayObject.html

 

And yes, this can be frustrating, but it is explained here: http://blog.createjs.com/width-height-in-easeljs/

 

and an update here: http://blog.createjs.com/update-width-height-in-easeljs/

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×