mr.white Posted April 29, 2022 Share Posted April 29, 2022 hi guy Why doesn't the image inside my #T1 div expand downward? See the Pen KKQPqdp by cuvutmcr-the-typescripter (@cuvutmcr-the-typescripter) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted April 29, 2022 Share Posted April 29, 2022 15 minutes ago, mr.white said: Why doesn't the image inside my #T1 div expand downward? I'm not sure what you mean. It looks like you're animating "y" to -200px which would make it go UP. From what I can tell, it's all working exactly as I would expect. Are you expecting the pinned element to grow vertically WHILE it is pinned? That's not how pinning works. It would probably be wiser to just set up your .T2 so that it is 100vw and then just scale it down initially and animate it to a scale of 1 (and the transform-origin should be center top): See the Pen NWyKvxd?editors=0010 by GreenSock (@GreenSock) on CodePen Does that help? 1 Link to comment Share on other sites More sharing options...
mr.white Posted May 3, 2022 Author Share Posted May 3, 2022 thanks you so much for your help. flex can also solve this problem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now