jarallax icon indicating copy to clipboard operation
jarallax copied to clipboard

Image Height Calculation is Off using Data Attribute

Open frogydiak opened this issue 2 years ago • 1 comments
trafficstars

Issue description:

I was wondering why my images are so blown up and pushing the image position down. After comparing it with the demo page, I got an idea that it might be miscalculating the image size so I thought it is the viewport setting but it is not. Well my jarallax html is not defined after the body tag but deep inside a module with sections and divs. Finally I just thought of initializing it using jQuery and there it is, images are shown properly and the position is working properly.

Version used: 2.1.3

(Did you try using the develop branch from GitHub? There's a chance your issue has already been addressed there) No

Code to reproduce the issue (HTML blocks + JavaScript initialization)

Just the basic html structure in the readme page and data attributes.

Anyone having this same issue?

frogydiak avatar Jul 04 '23 05:07 frogydiak

Not sure I understand how you get this problem. Please, provide an example here - https://codesandbox.io/

nk-o avatar Jul 08 '23 06:07 nk-o