Jump to content
Search Community

Stagger in list items - but only above 'the fold' and then immediately set the rest

sheriffderek test
Moderator Tag

Recommended Posts

I have a few long calendar-like pages.

 

I'd like to stagger the list items/calendar-day cards in, but ideally - only the cards the user would see would need animation. The 200+ other cards below the fold could be set to their default properties straight away behind the scenes. Figuring out how many cards are in view and how many are out of view and creating a timeline with two tweens on 2 different arrays could work - but if the user scrolls down the page mid-timeline, it would reveal the big secret. Before I start playing with intersection observers or hacking it with multiple viewport heights worth of elements... I'm curious if there's already a gsap way of doing things like this.

See the Pen bGzqxbq by perpetual-education (@perpetual-education) on CodePen

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