Jump to content
Search Community

SplitText with ScrollTrigger not working smooth on IPhone

Gravitas test
Moderator Tag

Recommended Posts

Hi Dear,

I have created a component with split text and scroll trigger in a Next.js project. It works fine on Android but is not functioning properly on iPhone. Specifically, I'm experiencing jerking while scrolling. Can anyone suggest a solution to fix this issue?

See the Pen JjVMJZz by farhankhanui (@farhankhanui) on CodePen

Link to comment
Share on other sites

Hi,

 

Most likely this is related to the fact that you're animating the width property. Always avoid animating width/height/top/left properties because they require a paint and layout updates:

 
You can try the demos in this thread, the one from the GSAP collection and the one by @PointC:

 

Hopefully this helps.

Happy Tweening!

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