Jump to content

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

Force repeatRefrech on duration

Go to solution Solved by OSUblake,

Recommended Posts

Hello community this is the first time I post here.


I'm on a threejs project and currently messing around with timeline. 

With this fromTo timeline I already set the repeat to -1 and also want it to repeatRefresh all of the value on every repeat, which included duration. But I see that in the document saying duration is not refresh-able. Is there anywhere to overide it? TQ

Link to comment
Share on other sites

  • Solution

Welcome to the forums @PikabobAlex


What I like to do is just make a function that will call itself on complete, kind of like this.



function animate() {
    onComplete: animate
  .to(foo, {
    duration: "random(1, 3)",


  • Like 4
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.