Jump to content
Search Community

Trying to use ScrollTrigger to scale down a full screen image and have the content below move up in sync

rexbradford test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

In the attached codepen I'm trying to get the full screen image to scale down on scroll, which does work, but I can't seem to get the content below the image to sit directly below the image after the scale has happened. I've tried playing around with pinSpacing but this doesn't seem to resolve the problem. Any help is much appreciated as I've been playing around with this for what seems like hours to no avail.

See the Pen NWYEzBv by rexbradford (@rexbradford) on CodePen

Link to comment
Share on other sites

  • rexbradford changed the title to Trying to use ScrollTrigger to scale down a full screen image and have the content below move up in sync

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