Jump to content
Search Community

Splittext and hyphens

andwhy test
Moderator Tag

Recommended Posts

Hi,

 

I believe that there is no way right now to make this work in the way you intend. If you remove all the GSAP code from your example and you inspect the DOM you'll see this:

<h1 lang="de">Wir machen Privatversicherungen und Firmenversicherungen.</h1>

That's basically what SplitText is getting to work with, so obviously since there are no hyphens there, SpliText doesn't consider them.

 

The only way I can think about making this work is to hard code it and use CSS media queries in combination with GSAP MatchMedia to create something similar depending on the screen width using the approach the OP came up with in this thread:

 

Sorry I can't be of more assistance.

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

  • 1 month later...

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...