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:
thednp 2015-10-25 06:48:52 +02:00
parent 09a72c3607
commit dda03a277e

View File

@ -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: