Share Posted July 14, 2015 This works properly - a stand-alone tween: TweenMax.to(rect, 2, {x:200, repeat:1, yoyo:true}); This does not - the same tween in a timeline - the initial translation works, but no repeat: tl = new TimeLineMax(); tl.to(rect, 2, {x:200, repeat:1, yoyo:true}) I know that the timeline can be set to repeat and yoyo, but I just want a single tween in the timeline to repeat and yoyo. Thanks, Gus Link to comment Share on other sites More sharing options...
Share Posted July 14, 2015 Actually, you need to insert a TweenMax instance into the timeline. The convenience methods use TweenLite in order to minimize dependencies and file size. So you can simply do: tl.add( TweenMax.to(.... {repeat:1, yoyo:true}) ); Link to comment Share on other sites More sharing options...
Author Share Posted July 14, 2015 It's a pleasure to use your engine and work with you. Thank you Jack. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now