Skip to content

Commit

Permalink
Merge pull request tweenjs#589 from JackParkes1/patch-1
Browse files Browse the repository at this point in the history
Update yoyo function in user guide
  • Loading branch information
trusktr authored Apr 19, 2021
2 parents ae24c58 + 53bb909 commit 307c0b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,12 @@ Check the [Repeat](../examples/08_repeat.html) example.

### `yoyo`

This function only has effect if used along with `repeat`. When active, the behaviour of the tween will be _like a yoyo_, i.e. it will bounce to and from the start and end values, instead of just repeating the same sequence from the beginning.
This function only has effect if used along with `repeat`. When active, the behaviour of the tween will be _like a yoyo_, i.e. it will bounce to and from the start and end values, instead of just repeating the same sequence from the beginning:

```
tween.yoyo(false) // default value, animation will only go from start to end value
tween.yoyo(true) // tween will 'yoyo' between start and end values
```

### `delay`

Expand Down

0 comments on commit 307c0b8

Please sign in to comment.