Jump to content
Search Community

Pause/Delay tween within the TimelineMax?

ngrinchenko test
Moderator Tag

Recommended Posts

Hi, I am not sure if I am doing it right. Just wanted to confirm or have a better suggestion.

Within the time line I want one tween to stay longer, just in the state it was tweened to without any motion going on. But my time line has to run in equal specified intervals between the tweens. So for that I put {delay:number} for the tween following the one I want to stay on the screen.

Is this the best way to do it?

 

 //initially set to autoAlpha:0 so it comes out of the dark
 TweenMax.allTo([openingImage_mc.openingImage_Dark_mc, openingImage_mc.openingImage_Light_mc], 0, {autoAlpha:0});

  var openingImage_timeLine:TimelineMax = new TimelineMax({timeScale: 1.5});
  openingImage_timeLine.appendMultiple([TweenMax.to(openingImage_mc.openingImage_Dark_mc, 1, {autoAlpha:1 }),
		  TweenMax.to(openingImage_mc.openingImage_Light_mc, 2, {autoAlpha:1, delay: 1 }),
		  TweenMax.to(openingImage_mc, 1.5, {autoAlpha:0, delay: 1.5}),
		  TweenMax.to(openingImage_mc.revealingBlack_mc, 1, {autoAlpha:0})
		  ],
		  .5, //offset number, i.e. how long it waits before to start
		   TweenAlign.SEQUENCE,//tweens start times are aligned if TweenAlign.START, or TweenAlign.SEQUENCE so they start one after another
		   -0.5);//n = staggers the TweenAlign.START time,
			//i.e. waits n seconds before each tween starts from the beginning of the append multiple,
			//so the overlap (almost like specifying a "-" value)
			//if TweenAlign.SEQUENCE then like "+" value as each tween waits 0.2 seconds before it starts

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...