Jump to content
GreenSock

Adiacent

Jumping between sections - ScrollTrigger (scroll up: immediately goes to the first panel PROBLEM)

Moderator Tag
Go to solution Solved by GreenSock,

Recommended Posts

https://drive.google.com/file/d/1jwQGt7UNsXakt8rp_KZERaCLC3haKJfy/view
 

Hi super forum,
using this trick, I noticed that some resolutions say from 1500px down it happens that when you go back up, it immediately goes to the first panel(section) without going through the intermediate panels (sections).I attach video, in the first case with 1920px monitor everything ok, in the second case notekook 1500px the problem occurs.
Practically it does it to me on all the demos where this code is implemented.
Is it impossible that no one has noticed?

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

Link to comment
Share on other sites

UPDATE:
I think the problem is not the resolution itself in the nootebook but in the 125% layout option (recommended choice) of windows 10.
Putting it at 100% works, but it looks too small ....

Link to comment
Share on other sites

  • Solution

I hadn't seen that demo before, but there was a bit of a logic flaw in the code, and it was more verbose than necessary. I've updated it: 

See the Pen abdNRxX?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Does that work better for you? 

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