Jump to content
Search Community

Gsap - parallax with difference sizes work bad

Lichay test
Moderator Tag

Recommended Posts

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

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

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