Jump to content
Search Community

sequencing registerEffect() on multiple targets

kbatchu test
Moderator Tag

Go to solution Solved by kbatchu,

Recommended Posts

Hello there,

 

You can just execute your functions in the master timeline.

Note that since typewriter blinker has a repeat: -1, its duration will be very high (infinite-like), so you cannot space your animations with '>' positional parameter, you have to hard code the duration you pass in (possibly store it in a var and reference it here).

 

If you don't space them out, both will start immediately.

 

masterTL 
.add(loadPara1()) 
.add(loadPara2(), 4)

 

  • Like 2
Link to comment
Share on other sites

Hey @kbatchu - welcome to the forums.

 

15 hours ago, tailbreezy said:

Note that since typewriter blinker has a repeat: -1

 

I think this is the actual problem at play here.

Since that blinking animation which is part of your first timeline is set to repeat infinitely, that first timeline will never finish and thus the second timeline will never start playing as you have set things up.

 

You can see that the second timeline will start playing if you remove that infinite blinking from the first timeline

 

See the Pen 69997faf1fe1e84836316da41f41add3 by akapowl (@akapowl) on CodePen

 

 

So one solution could be to simply just set up an individual tween for the infinite blinking apart from your timelines.

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