Luisimgt Posted February 23, 2021 Share Posted February 23, 2021 Hello guys, I need your help. Can someone please help me, I appreciate your guidance, I need to work something like the example that I leave at the moment of scrolling there are several images that can be zoomed. Thanks Link to comment Share on other sites More sharing options...
tailbreezy Posted February 23, 2021 Share Posted February 23, 2021 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 3 Link to comment Share on other sites More sharing options...
mikel Posted February 23, 2021 Share Posted February 23, 2021 Hey @Luisimgt, Welcome to the GreenSock Forum. You could also use individual values with data.set: See the Pen WNxzPBa?editors=1010 by mikeK (@mikeK) on CodePen Happy tweening ... Mikel TailBreezy: What about your typo, transforOrigin (...)? 1 1 Link to comment Share on other sites More sharing options...
tailbreezy Posted February 23, 2021 Share Posted February 23, 2021 16 minutes ago, mikel said: TailBreezy: What about your typo, transforOrigin (...)? Well Lets' fix that. 1 Link to comment Share on other sites More sharing options...
Luisimgt Posted February 24, 2021 Author Share Posted February 24, 2021 You are amazing guys! Mil gracias Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now