Jump to content
Search Community

General question about clock and GSAP internals

Bembe 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 guys,

 

first of all a big thank you.

This is my first post, I just signed up and I guess its in order to  thank you for creating such a stable library.

It is an essential part of a project I have been working on last couple of years....and it is the only lib that hasn't been touched, or i might say "retouched" :-). 

Just to mention, even jquery 3 got a rework, face lifting...
So, my only question, after all this years is :

Can internal clock be somehow exposed?

Does the clock tick if no animations are going, or only when something is active?

If a lot is happening, are all tweens, timelines and everything ticking to same clock?

Can onUpdate() for all functions (to, from, stagger....) be accessed or extended somehow?

 

All these questions are for more or less same reason...I need to do something inside my app on every GSAP tick (update transformation data of elements, bounding boxes of selected elements and similar).

 

I guess i dont even need to execute some code...just to know has it ticked...

I could go and make a to() function run in loop, indefinitely and update a var, or execute code on every onUpdate(), in background... if there is no other way and all tick to same clock.

 

Thanks in advance

 

 

 

 

 

 

 

 

 

 

 

 


 

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