Jump to content
Search Community

Jumps back to the start of the pin when I scroll to the end on mobile

Sikander test
Moderator Tag

Go to solution Solved by Sikander,

Recommended Posts

Hi whenever i scroll to the bottom of the page and start to scroll up it automatically jumps to the start of the second pinned element. This happens just on mobile phones while on desktops or laptops it works perfectly fine

Here is a video of it happening:

https://drive.google.com/file/d/1Nk-I3ZE0ANR5gr7lavz3XOBwLh_hVfao/view?usp=sharing

 

Sandbox link:

https://codesandbox.io/s/flamboyant-rgb-th6jx8?file=/src/App.js:248-267

Link to comment
Share on other sites

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general troubleshooting of large chunks of code. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

I don't see anything obvious that'd make it scroll - it doesn't look like you're using an "snap" value. So I suspect the issue is unrelated to GSAP/ScrollTrigger. 

 

Otherwise, if you've got a GSAP-specific question just post that here along with a minimal demo and we'd be happy to take a look. 

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