Jump to content
Search Community

How to end a pin?

LSchneiderman test
Moderator Tag

Go to solution Solved by Carl,

Recommended Posts

I'm trying to get an image to stayed pinned until another image has scrolled to the top. I'm not sure how to do this. I do have a variable called "height":

 

var height = $(window).height();

 

Can I do a pin like this?

 

 ScrollTrigger.create({
            trigger: "#sprawl",
            start: "top top",
            pin: true,
            end: "+=" + height * 2
        });

 

Or is there a way to end a pin with relation to another element?

Link to comment
Share on other sites

Hi,

 

I think this is related with this other thread you created?

 

If so please let's focus our attention in just one of these threads so it's easier to track for everyone involved.

 

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