Jump to content
Search Community

Reset Random Value on Repeat

pietM test
Moderator Tag

Recommended Posts

Hey piet. You can just set repeatRefresh: true on the timeline and it will have new random values every time. However, that creates an issue because you use a .from opacity of 0 but after the first iteration the opacity is 0 so it animates from and to 0, keeping the elements hidden. There are several ways to fix that, a simple one is to use a fromTo:

See the Pen VwejKpM?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 3
Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...