Jump to content
Search Community

Having trouble with pin spacing

LSchneiderman test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

I want to have an image scroll up, freeze, then another image scroll over it, then the background image unfreeze and the next screen scroll up directly under the frozen image. But I'm having trouble getting that first image to freeze for the requisite amount of time. I'd like some space at the bottom of the scrolling image. Help?

 

 

See the Pen GRavoRK by lschneiderman (@lschneiderman) on CodePen

Link to comment
Share on other sites

Everything in GSAP starts with an animation, so you first have to build the animation before you think about doing anything with scrolling. To define it simpler nothing is really scrolling, elements are moving on the y-axis, which when you hook it up to ScrollTrigger creates the illusion of things scrolling. 

 

Check out my post on creating a stacking card effect, this is all the logic you'll need. Hope it helps and happy tweening! 

 

 

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