pixelcog/parallax.js

Image zoom is too much

Closed this issue · 2 comments

I understand that parallax needs to zoom in order to work but the zoom is too much causing my images to distort and not be able to see the whole image.

Natural image size is 800x450. I have tried setting the data-natural-width='1600' data-natural-height='900' but it is still too much. Any ideas on how I can adjust this?

Zoomed Image
zoomed

Expected
expected

https://modcrash.com/zoomed.PNG
https://modcrash.com/expected.PNG

Hey @f1ss1on!

best way to do this, is to reduce the scroll speed, or increase the image height (expand the background vertically but keep the product the same).

hope this helps!

@wstoettinger Thanks! Reducing the speed helped! I will play around more with adjusting the image height but for now, thanks!