Jump to content
Search Community

Vertical Scroll with images

Luisimgt test
Moderator Tag

Recommended Posts

What is troubling you? This is just ScrollTrigger with pin applied on the parent. The animation is basically a perspective scaling.

First build the animation then add ScrollTrigger.

You will have to calculate when the animation ends, could be as simple as some z: XXX but better way may be to calculate when the last photo is out of the viewport.



See the Pen b7599ae9273237439923abb264dfddce by dadacoded (@dadacoded) on CodePen


See the Pen eef87e27c0ff91f8827233b6ea4daefe?editors=1010 by dadacoded (@dadacoded) on CodePen

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