Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

zoom out image on scroll

Recommended Posts

Good morning, I found this codepen: 

See the Pen vYgdBVr by icodeayush (@icodeayush) on CodePen

and tried to make mine codepen for my needs here:
I would like to understand how I can make the image you see in the codepen become a full screen image (as if it were the background image), and when i scroll that start to zoom out from the center.

See the Pen ZErJmJm by uavide (@uavide) on CodePen

Link to comment
Share on other sites

I'm not sure that I understand your goal correctly, but here's a way you could animate the image to fill the container and be centered, pinned and scrubbed: 

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

  • Like 3
Link to comment
Share on other sites

Ok that's cool thanks ..have a nice day!!!

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.