Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

repeat and yoyo not working?: multiple objects with randomised attributes

Recommended Posts

Hello again good folks,


Im trying to get to grips with animating multiple elements to different (randomised) attribute values.


In the codepen, a loop adds a TweenMax to the timeline for each of the red ellipses.

However, the repeat and yoyo do not work - the animation only runs once.


ive tried numerous variations, but Im missing something..



See the Pen mlhwa by robertwebb364 (@robertwebb364) on CodePen

Link to post
Share on other sites



i changed your getRandom function and fix some syntax issue and works .

See the Pen IqELw by anon (@anon) on CodePen



  • Like 3
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.