NickNo Posted March 10, 2021 Share Posted March 10, 2021 Hi, I've got a page with a bunch of objects that fade in on scroll - then a bunch of galleries. What I want to happen is to click a 'load more' and then next set of gallery items animate in. The way I've (quickly) set it up doesn't work - I'm just wondering if I'm on the right track, or do I not even use scrolltrigger, and use something else to do this? See the Pen GRNwvaN by nickjacobsnz (@nickjacobsnz) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted March 10, 2021 Share Posted March 10, 2021 Hey Nick. ScrollTrigger works well in cases like this if you set it up in a way that works. I'd guess that the best way to do it is to select all of the new elements after they've been added and do a new ScrollTrigger.batch() for just those images. Check out this thread: 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