Jump to content
Search Community

jumpy splittext animations

sirhclluk test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

39 minutes ago, sirhclluk said:

What's the advantage of adding 

The reason for the * selector is that SplitText is adding a div inside the <h1> and that is what is being transformed (not the h1). You could also use SplitText to add a class to your lines, and add the will-change to that class.

Also, if you are just animating the lines, you may consider just splitting the lines in SplitText (excluding words and chars), so there isn't the extra <div>s being generated ( you may see some performance improvement by doing this, but I've not tested)

  • Like 2
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...