parallax icon indicating copy to clipboard operation
parallax copied to clipboard

Gets too large when resizing

Open JacobDB opened this issue 7 years ago • 3 comments

When the viewport resizes, the images being parallaxed become gigantic. As a possible solution, is there a way to "reset" the parallax effect on resize?

JacobDB avatar Oct 11 '17 15:10 JacobDB

Once again, I got the same issue, very strange

lateek35 avatar Nov 17 '17 14:11 lateek35

@JacobDB could you please reproduce the issue?

GianlucaGuarini avatar Nov 18 '17 15:11 GianlucaGuarini

The documentation says that the images will fill the wrapper they're in ("The images will be stretched to fit always the whole wrapper size"). So if the images are just placed inside the body for instance, they will get huge.

I got around it by getting the images width and height with php and applying inline styling with the fixed height and width units. Not ideal, but it worked.

I don't see why the images has to grow to fill the wrapper their in. When would you want that? It would be nice to at least have the option to turn that off.

Helwis avatar Dec 13 '17 21:12 Helwis