From dda03a277ec3a73fe7ed4c41f28baf01cbd69a3b Mon Sep 17 00:00:00 2001 From: thednp Date: Sun, 25 Oct 2015 06:48:52 +0200 Subject: [PATCH] Update user_guide.md As explained here, the `chain` method can also manage multiple tweens. --- docs/user_guide.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/user_guide.md b/docs/user_guide.md index cacc73c..9c8b129 100644 --- a/docs/user_guide.md +++ b/docs/user_guide.md @@ -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: