mirror of
https://github.com/tweenjs/tween.js.git
synced 2025-12-08 20:16:12 +00:00
Update user_guide.md
As explained <a href="https://github.com/tweenjs/tween.js/issues/153#issuecomment-143296203">here</a>, the `chain` method can also manage multiple tweens.
This commit is contained in:
parent
09a72c3607
commit
dda03a277e
@ -156,6 +156,13 @@ tweenB.chain(tweenA);
|
||||
````
|
||||
|
||||
Check [Hello world](../examples/00_hello_world.html) to see an example of these infinite chains.
|
||||
|
||||
In other cases, you may want to chain multiple tweens to another tween in a way that they (the chained tweens) all start animating at the same time:
|
||||
|
||||
````javascript
|
||||
tweenA.chain(tweenB,tweenC);
|
||||
````
|
||||
|
||||
### `repeat`
|
||||
|
||||
If you wanted a tween to repeat forever you could chain it to itself, but a better way is to use the `repeat` method. It accepts a parameter that describes how many repetitions you want:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user