Jump to content
GreenSock

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

SplitText remove divs after animation finish?

Recommended Posts

Is it possibly to remove the divs create by splittext after the animation has finished?

Link to comment
Share on other sites

Hello jesper.landberg

 

You can revert() the text that you used SplitText on, and then remove that text with JS in the special onComplete callback of your tween.

 

http://greensock.com/docs/#/HTML5/Text/SplitText/

http://greensock.com/docs/#/HTML5/GSAP/Utils/SplitText/revert/

 

Do you have a code example?

 

 

Thanks! :)

  • Like 4
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.
×