Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Remove an Element at End of Tween

Recommended Posts

I was curious if I could get pointed in the right direction as how to remove an element at the end of a tween.


I imagine a callback or something along that line would be best, but I'm not too familiar with it. In my example I'd want to use an onComplete to remove the divs, but hopefully do so in a way that's a bit more dynamic, in case I'm dealing with a lot of different elements.

See the Pen yLLVrba by Fakebookin (@Fakebookin) on CodePen

Share this post

Link to post
Share on other sites
1 hour ago, GreenSock said:

Sure, like this?:




Exactly! And this actually makes perfect sense now, thanks!

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.