Jump to content
Search Community

Why doesn't the image inside my #T1 div expand downward?

mr.white test
Moderator Tag

Recommended Posts

  • mr.white changed the title to Why doesn't the image inside my #T1 div expand downward?
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? 

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