Jump to content
Search Community

Text scrolling beyond pinning points

Shehzad Asif test
Moderator Tag

Go to solution Solved by ZachSaucier,

Recommended Posts

Hi There

 

I am observing a wired issue with pinning. The thing is text pinning should end when the container height ends but it scrolls beyond its height and join next container text and then leave pinning. I tested it by putting "+=100%" and other functions like "container scroll height and endTrigger" but same issue. What I am trying to achieve is that text should leave pinning when it comes to the top/ center of last image of each container through single tween. What I am missing?.

See the Pen JjKVROB by ShehzadAsif (@ShehzadAsif) on CodePen

Link to comment
Share on other sites

  • Solution

Hey Shehzad. It's doing what it's supposed to do, so I'm guessing it's some misunderstanding on your side. If you're not attaching an animation to a ScrollTrigger you should probably use the ScrollTrigger.create() method.

 

I would set it up this way:

See the Pen RwROoqp?editors=0010 by GreenSock (@GreenSock) on CodePen

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