Jump to content
Search Community

Running multiple timelines at the same time.

Yes! test
Moderator Tag

Recommended Posts

Great! Can you point me to a resource on how to run multiple timelines at the same time?

Basically, in pixi.js, I want to run one timeline tween set on a background element and a 2nd timeline set on foreground elements. The tweens will be dictated by the y position of a pixi.Point driven by the scrolling mouse or arrow keys.

Link to comment
Share on other sites

hmm, I think we are either not understanding the question or you need to word it differently.

You just need to create 2 timelines and they will run totally independently of each other

var bgTimeline = new TimelineLite();
bgTimeline.to(background, 1, ({x:200});

var fgTimeline = new TimelineLite();
ggTimeline.to(foreground, 1, ({x:400});
  • 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...