Share Posted February 4, 2022 Hello Team , Why does onStart callBack is triggered for the first element passed in array. tl.set([...chars], { opacity: 0 }) tl.to([...chars],{ opacity: 1, ease: Linear.easeNone, willChange: "transform, opacity", immediateRender: false, onStart: placeHand, stagger:duration / chars.length, duration : (duration/chars.length) }); in version 2 it gets called for every element that has been included in the array, if in v3 it triggers only for the first element then what will be the fix, i want to call the onStart callback for every element in the array. See the Pen abVmBzL by AniBhuvan (@AniBhuvan) on CodePen Link to comment Share on other sites More sharing options...
Share Posted February 4, 2022 Hi Jim, You can place callbacks inside the stagger object, and they will be for each element. tl.to(chars,{opacity: 1, ease: Linear.easeNone, willChange: "transform, opacity", immediateRender: false, // onStart: placeHand, stagger: { each: duration / chars.length, onStart: placeHand }, duration : (duration/chars.length) }); 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