Jump to content
Search Community

image pin perspective

Sukru test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

I would set the will-change via CSS, that way the browser will know what to do with the elements as soon as possible. You're animating your trigger element, that is a no go with ScrollTrigger, so I've changed that to use the figure element (.image), and I've set transform-origin: top center (by default it is the center of the element). Is that what you're looking for?

 

See the Pen GRPLOwY?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

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