Jump to content
GreenSock

Sukru

Disable smooth scroll in mobile browser 'iphone / android' device

Recommended Posts

Helo, i want to disable smooth scroll in mobile browser, because scroll usability is seriously reduced, locomotiv scroll can do this by default. but it doesn't suit me because I use gsap library. I wonder if a scroll without animation is possible for mobile browsers?

See the Pen QWOYRLR by sukruemanet (@sukruemanet) on CodePen

Link to comment
Share on other sites

You can disable it by killing and change some CSS. This might be better a good use case for ScrollTrigger.matchMedia as it will automatically kill the smoother.

 

See the Pen RwjvzNm by GreenSock (@GreenSock) on CodePen

  • Like 2
Link to comment
Share on other sites

17 hours ago, OSUblake said:

You can disable it by killing and change some CSS. This might be better a good use case for ScrollTrigger.matchMedia as it will automatically kill the smoother.

 

Thank you very much :)

 

 

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