Jump to content
GreenSock

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

Zoom out then scroll effect?

Recommended Posts

Hi guys,

 

I'm wondering how this effect is achieved?
https://pitch.com/
What happens is that the hero image slowly zooms out as the user scrolls,

revealing that is is a screen within a device,

then the device with the hero image scrolls as per normal on the page.

I'm thinking that it can probably be achieved with the new scroll trigger plugin,

but it's anchored and zoomed, plus the ending when it scrolls normally felt a little confusing as to how it works.
Not to mention getting the size right to frame the device just outside the screen based on screen size.

Link to comment
Share on other sites

Hey Learning. 

 

Using ScrollTrigger this effect is easy! Just scale the element using a tween and apply a ScrollTrigger with pinning:

See the Pen LYGbJEP by GreenSock (@GreenSock) on CodePen

 

We have a more complex demo of the same sort of effect as well:

See the Pen wvKwZXG by GreenSock (@GreenSock) on CodePen

  • Like 2
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.
×