Jump to content
Search Community

Inifnite scroll problem

GGQa test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

I'm trying to do endless scrolling on my gallery page. I want three columns. The problem is, when I scroll down my wall, elements disappear and appear in weird ways ... and I want them to appear smoothly ...

The strange thing is that when I have one column it all runs smoothly. Only in the case of three columns does this problem arise with ugly appearing elements ...

See the Pen yLvYQjw by GGQa (@GGQa) on CodePen

Link to comment
Share on other sites

  • Solution

Hi GGQa,

 

You just need to loop through every item based on the column, kind of like a 2D array. And you can replace that .set() call with gsap.quickSetter.

 

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

 

Also, you can use our new Observer plugin to handle most of your events.

 

https://greensock.com/docs/v3/Plugins/Observer

 

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