You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I've noticed that for whatever reason, data-natural-height and data-natural-width does not pass the values correctly and that the image displayed is really out of proportion. I'm working with a 1024x256 image, but parallax.js expands the image way out of proportion. I am using mostly default settings for testing
Image 1 is the image as loaded via parallax and image 2 is loaded without. They are both the same sized frame, but for some reason, image 1 (with parallax) is overly zoomed in. Any ideas? Or am I missing a setting?
The text was updated successfully, but these errors were encountered:
Keep in mind that parallax.js needs to zoom into the image enough that there is room for it to slide up and down as you scroll. If you are dealing with a very narrow image like the one you are describing it will zoom in such that there is enough vertical padding to accommodate the parallax effect.
I would recommend cropping the image such that there is more overflow on the top and bottom; say, 1024x512.
Hi
I've noticed that for whatever reason,
data-natural-height
anddata-natural-width
does not pass the values correctly and that the image displayed is really out of proportion. I'm working with a 1024x256 image, but parallax.js expands the image way out of proportion. I am using mostly default settings for testingImage 1 is the image as loaded via parallax and image 2 is loaded without. They are both the same sized frame, but for some reason, image 1 (with parallax) is overly zoomed in. Any ideas? Or am I missing a setting?
The text was updated successfully, but these errors were encountered: