Lichay Posted November 19, 2020 Share Posted November 19, 2020 Gsap - parallax with difference sizes work bad when I resize my screen size the image start to be very small for no reason and isn't take full height of the screen How can I fix it ? Why this issue happen? with full size he look good he get 100vh anyway all object is pin. thank for helping guys! Code inside link https://codesandbox.io/s/gsap-size-bsus3 Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 19, 2020 Share Posted November 19, 2020 Hey Lichay. In your CSS you set the max-height to 100vh, not the height. So if your screen is larger than the image's size then it wouldn't fill the height. 2 1 Link to comment Share on other sites More sharing options...
Lichay Posted November 19, 2020 Author Share Posted November 19, 2020 6 hours ago, ZachSaucier said: Hey Lichay. In your CSS you set the max-height to 100vh, not the height. So if your screen is larger than the image's size then it wouldn't fill the height. It work , but if I resize to screen to small size and back to big The image stay small / Have way to fix it? edit: it happened when I change to mobile and return back Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 19, 2020 Share Posted November 19, 2020 Sorry, you haven't provided enough information for me to provide any help. Link to comment Share on other sites More sharing options...
Lichay Posted November 19, 2020 Author Share Posted November 19, 2020 Just now, ZachSaucier said: Sorry, you haven't provided enough information for me to provide any help. I am edit it Link to comment Share on other sites More sharing options...
Lichay Posted November 19, 2020 Author Share Posted November 19, 2020 43 minutes ago, ZachSaucier said: Sorry, you haven't provided enough information for me to provide any help. I recorded video for you 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