tween.js icon indicating copy to clipboard operation
tween.js copied to clipboard

repeat with yoyo doesn't work properly

Open dnassler opened this issue 12 years ago • 4 comments

When I try to setup a tween that repeats with yoyo, my tween repeats but doesn't do the yoyo part. :(

dnassler avatar Nov 13 '14 19:11 dnassler

You need to set repeat: 1 in order to make yoyo to work. Think of it like the yoyo method creates a clone of the original tween, but with reversed values. Also to make sure the element animate to the original initial values, you can always use repeat: +1, ok?

thednp avatar Nov 14 '14 05:11 thednp

We should investigate this behaviour and also add @thednp's comment to the documentation if it's the right behaviour. Or perhaps see if the docs are confusing.

sole avatar Oct 03 '16 12:10 sole

We're gonna get things rolling again. Tracking in the new project board: https://github.com/tweenjs/tween.js/projects

trusktr avatar May 30 '20 01:05 trusktr

Closing this, as there isn't a description of what's wrong. There have been fixes to yoyo functionality recently, and it is tested and working in the examples (make sure to call repeat with a value of 1 or more).

trusktr avatar May 30 '20 07:05 trusktr