Jump to content
Search Community

GSDevtools - All onComplete events fire at the start

Kejas 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 have just started using GSAP and its really cool.

In my current project i need voiceovers (.mp3) to start at a certain points  for which i am calling onComplete parameter in timelinemax.

Its works as expected when running without gsap devtools. But when i enable GSdevtools all onComplete events are fired at the start thus starting all the sounds together.

 

P.S. Simplified version of my code created in codepen though didnt manage to play sounds.

Live demo: http://create.mindsbourg.com/demo/index.php

Thanks

 

 

twcode.js

See the Pen ZEzRWaY?editors=1111 by kutuhal (@kutuhal) on CodePen

Link to comment
Share on other sites

That's likely because of some complexities involved with not linking it to a specific animation, thus it has to jump through some hoops to globally synchronize things but I'd recommend just pointing it at your animation like this: 

GSDevTools.create({animation:master});

Seems to work fine that way. 

 

Thanks for joining Club GreenSock!

  • Like 3
Link to comment
Share on other sites

  • 1 year later...

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