Share Posted June 18, 2020 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 More sharing options...
Share Posted June 18, 2020 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 2 Link to comment Share on other sites More sharing options...
Author Share Posted June 18, 2020 Hey @ZachSaucier, Thanks for the demos! Looks great~ 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