Jump to content
Search Community

how to video resize on scroll

renny test
Moderator Tag

Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

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

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...