You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is "duration" parameter expressed as? seconds, frames, milliseconds?
When using an array of "to" values, how Tweenjs handle the duration parameter?
Thank you
Is "duration" parameter expressed as? seconds, frames, milliseconds?
The duration parameter in Tween.js is expressed in milliseconds. For example, a duration of 1000 means the animation will take 1 second to complete.
When using an array of "to" values, how Tweenjs handle the duration parameter?
When you provide an array of to values, Tween.js will treat it as a sequence of tweens. Each segment will have its own duration and interpolation will occur sequentially.
newTWEEN.Tween(object).to({x: [100,200,300]},6000)// Total duration is 6000 milliseconds.start();
In this example, the total duration is 6000 milliseconds (6 seconds). Tween.js will divide the total duration by the number of segments (3 in this case), so each segment will have a duration of 2000 milliseconds (2 seconds).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is "duration" parameter expressed as? seconds, frames, milliseconds?
When using an array of "to" values, how Tweenjs handle the duration parameter?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions