Jump to content
Search Community

ScrollTrigger with SplitText on multiple items

kodralex test
Moderator Tag

Recommended Posts

Hi,

 

I'm using ScrollTrigger with SplitText across many titles down a page. I've read the documentation and can see a section related to this in the "Most Common ScrollTrigger Mistakes" section. I see I need to create a toArray. I'm just a little unsure how to apply this code to the SplitText code I'm using. Can anyone point me in the right direction please?

 

Thanks

See the Pen VwMWyXQ by alexkodr (@alexkodr) on CodePen

Link to comment
Share on other sites

Hi @kodralex :)

 

Here's a fork of your demo that should work for you. I switched the ease to none as I find that a bit better with scrub and I boosted the stagger just to make it obvious that everything was working. 

 

See the Pen 5e391b2175d6cd57b6dbfd9a870de42e by PointC (@PointC) on CodePen

 

Hopefully that helps.

 

Happy tweening.

:)

 

 

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

  • 9 months 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...