Jump to content
Search Community

Clipping masks in Animate CC using GSAP

Tony.hunt5687 test
Moderator Tag

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

Hi, I'm creating a basic banner in Adobe Animate and need to reveal some text using a moving clipping mask.

 

I've tried creating a traditional clipping mask using animate and then animating the mask using TweenMax, but this doesn't seem to work.

 

Any suggestions?

 

Many thanks

 

Tony

Link to comment
Share on other sites

Just use regular Animate actions.

So make your mask animation inside of a movieclip and give it an instance name (i.e. "myClip_mc"), add a stop action in frame 1 inside that movieclip > this.stop(); then add a frame label to frame #2 and call it something like "in". This is where your mask animation starts but it's waiting idly for you to tell it to start playing. 

Then somewhere else (wherever it should be) just call this.myClip_mc.gotoAndPlay("in"); Obviously, the path to which you target the clip will change based on your own file.

You can add the script to Animate's timeline or attach it to one of GSAP's events like onStart, onComplete, etc etc.

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.
×
×
  • Create New...