anotheruser Posted March 30, 2020 Share Posted March 30, 2020 Hi I know there is a way to seek gsap timeline using t1.play(time, suppressValue) so if i set the suppressValue to false , all the previous events(add callback, onstart, oncomplete) will be called right ? Is there a way to enable onComplete events alone without enable all the events? Link to comment Share on other sites More sharing options...
ZachSaucier Posted March 30, 2020 Share Posted March 30, 2020 2 minutes ago, anotheruser said: if i set the suppressValue to false , all the previous events(add callback, onstart, oncomplete) will be called right ? All that are relevant, yes. 3 minutes ago, anotheruser said: Is there a way to enable onComplete events alone without enable all the events? Not built in, no. It's rare that people use the suppressEvent parameter, even less so that they only want one of the callbacks to fire If you want it to jump to the end and play the onComplete, I'd use .progress(1), not .play(): See the Pen zYGeRNR by GreenSock (@GreenSock) on CodePen Alternatively, keep suppressValue as true but manually call the onComplete callback function when you use the play. 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