Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'threading'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hello, I am BRAND NEW to greensok and please bare with me. BTW I loved it at first sight. I have the following pseudo code, with two functions that execute some animations let's say using to() method, namely minimise() and maximise(). Now when I call them from another function for example fooOne() what happens is that the main thread rushes in the minimise() function, starts the timeline animations then quickly returns to fooOne() and jumps into maximise() where it too starts the timeline animations. Now what I am getting is the animations in minimise() and maximise() running almost concurrently, how can I go about and only execute maximise after minimise finished? I can do this with jQuery but I couldn't find any documentations or posts about this topic on the internet. Regards. function fooOne(){ minimise() ; maximise() ; } function fooTwo(){ maximise() ; } function fooThree(){ minimise() ; } function minimise(){ var timeline = new TimelineLite(); timeline.to(........); timeline.to(........); // loads more animations below. } function maximise(){ var timeline = new TimelineLite(); timeline.to(........); timeline.to(........); // loads more animations below. }
×