Jump to content
Search Community

Split text Plugin support for canvas

Benello test
Moderator Tag

Recommended Posts

Hi GSAP Team,

I'm currently using GSAP for my animations, and I'm particularly interested in the SplitText plugin. I'd like to know if SplitText currently supports canvas text rendering. If not, are there any plans to include canvas support for SplitText in the future?

Thank you!

Link to comment
Share on other sites

Hi,

 

As far as I know there isn't a support for canvas because SplitText does a bunch of DOM related calculations and operations. What you could try is to create a DOM element, use SplitText on it get the result from it and add that to a canvas element (letter by letter or word by word using a loop) and then delete the DOM element to remove it from the DOM.

 

As far as I can tell there aren't any plans for SplitText on canvas for the future, but I don't have the final say in this though.

 

Happy Tweening!

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.
×
×
  • Create New...