Share Posted May 6, 2022 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 More sharing options...
Solution Solution Share Posted May 6, 2022 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 2 Link to comment Share on other sites More sharing options...
Author Share Posted May 6, 2022 Thank you @OSUblake. It's working. 🥰 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now