renny Posted July 15, 2022 Share Posted July 15, 2022 https://www.apple.com/in/iphone-13-pro/ how to resize video on scroll Link to comment Share on other sites More sharing options...
Cassie Posted July 15, 2022 Share Posted July 15, 2022 gsap.to('video', { scale: 2, scrollTrigger: '.container' }) More information - https://greensock.com/docs/v3/Plugins/ScrollTrigger Link to comment Share on other sites More sharing options...
renny Posted July 15, 2022 Author Share Posted July 15, 2022 i know this but how to pin and video smaller on scroll Link to comment Share on other sites More sharing options...
Cassie Posted July 15, 2022 Share Posted July 15, 2022 Hi again Renny. I think having a dive into the docs would be more beneficial than continuing to ask these questions in the forums. Is there something we can do to make you more comfortable with seeking out answers in the documentation, is there a language barrier or something you're struggling with? ---- To pin you set pin:true To make the image smaller you use a smaller scale value gsap.to('video', { scale: 0.2, scrollTrigger: { trigger: '.container, pin: 'video, start: 'top top' end: '?px' } }) Hope this helps. 1 Link to comment Share on other sites More sharing options...
renny Posted July 15, 2022 Author Share Posted July 15, 2022 See the Pen JjLGYGW by solace-digital (@solace-digital) on CodePen i have added my code, but not video zoom out slowlly Link to comment Share on other sites More sharing options...
Cassie Posted July 15, 2022 Share Posted July 15, 2022 Just repeating this question - Quote I think having a dive into the docs would be more beneficial than continuing to ask these questions in the forums. Is there something we can do to make you more comfortable with seeking out answers in the documentation, is there a language barrier or something you're struggling with? 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