Jump to content
Search Community

Problems resizing a scene with a pinned ScrollTrigger + SplitText with absolute position

Pedro Rezende test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hello everyone,

 

I'm still having problems trying to get the best of ScrollTrigger + SplitText. For the effect I want to achieve, I really need the SplitText position set as absolute. And to get things a bit tricky, I need the page content to be pinned. 

 

The problem is happening when I resize the screen. If I split again on resize, it seems to calculate the wrong chars position because the pinned container seems to have a debounce somewhere.  If I put on onRefresh, I lose the reference to text.chars on my timeline.

 

I placed some comments on the code to demonstrate this issue. Could someone help me out pointing if I'm doing something wrong or suggesting a workaround to this issue?

 

Thank you very much!

 

 

See the Pen oNJdBee by prznd (@prznd) on CodePen

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