momo12 Posted October 25, 2022 Share Posted October 25, 2022 Guys I have a bunch of circle elements. I want to target 5 of them each time randomly (Their order must be random) and set their opacity to 0. This repeats forever! I have used Stagger but have no idea why it's not working! See the Pen ExRxjEy by emdesigner-or (@emdesigner-or) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted October 25, 2022 Share Posted October 25, 2022 I'm not sure exactly what kind of randomized effect you're going for, but perhaps it's as simple as adding from: "random" to your stagger: See the Pen LYrYpEQ?editors=1010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
momo12 Posted October 25, 2022 Author Share Posted October 25, 2022 @GreenSockrepeat will define the nunber of items? Why it stops? I need yoyo? Link to comment Share on other sites More sharing options...
GreenSock Posted October 25, 2022 Share Posted October 25, 2022 No, repeat is how many times you want it to repeat Link to comment Share on other sites More sharing options...
momo12 Posted October 25, 2022 Author Share Posted October 25, 2022 4 minutes ago, GreenSock said: No, repeat is how many times you want it to repeat Sorry I mean how can I define this happens to 5 items at once (then we revert their opacity back to 1 and choose 5 other circles? Do you think Stagger would help? Link to comment Share on other sites More sharing options...
Solution GreenSock Posted October 25, 2022 Solution Share Posted October 25, 2022 There are many ways to do that. Here's one: See the Pen QWxWNEJ?editors=0010 by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
momo12 Posted October 30, 2022 Author Share Posted October 30, 2022 On 10/25/2022 at 7:52 AM, GreenSock said: There are many ways to do that. Here's one: I forgot to say Thank you for your solution! Thanks a lot!! 2 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