Jump to content
Search Community

GSAP/Scroll Trigger Resize Issue

user100 test
Moderator Tag

Recommended Posts

I am animating an image as shown in the codepen link, and it works just the way I want it to. The issue is when I hit inspect and change the width of my screen from for example 1440 to 1920, the initial image which is supposed to cover the full width of the screen doesn't anymore, it covers the last known width (thus at 1920, the image is only covering 1440px instead of 1920px in width). How can I fix this? 

See the Pen oNZbgON by usert100 (@usert100) on CodePen

  • Like 1
Link to comment
Share on other sites

Thanks @akapowl ! It helps but another issue now is when you resize the start trigger is off. I just added markers to the codepen above and initially it starts at the top of the section which is what I need, but when I resize it looks like 200px above the section. And for my actual code, it seems like it occurs 1vh higher.

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