Jump to content
Search Community

Pin Panel Footer to Top on ScrollTrigger end

Ikram Khizer test
Moderator Tag

Go to solution Solved by Ikram Khizer,

Recommended Posts

Hi @Ikram Khizer welcome to the forum!

 

I've written a guide how you can go about creating any card stacking effect with GSAP (and ScrollTrigger) and it mostly comes down to how you start your layout with CSS, my preferred method is having everything stack already with CSS, so that we have a known position of all the cards. Then you just need to .set() them up with GSAP and create a tween for each. 

 

Check out the guide, there is not one that does already what you want exactly but the one linked below comes close. If you still have questions let us know. Hope it helps and happy tweening! 

 

 

 

See the Pen VwRBNEb by mvaneijgen (@mvaneijgen) on CodePen

Link to comment
Share on other sites

Using a framework/library like React, Vue, Next, etc.? 

CodePen isn't always ideal for these tools, so here are some Stackblitz starter templates that you can fork and import the gsap-trial NPM package for using any of the bonus plugins: 

 

Please share the StackBlitz link directly to the file in question (where you've put the GSAP code) so we don't need to hunt through all the files. 

 

Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. 

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