Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Height Calculation is Off using Data Attribute #221

Open
frogydiak opened this issue Jul 4, 2023 · 1 comment
Open

Image Height Calculation is Off using Data Attribute #221

frogydiak opened this issue Jul 4, 2023 · 1 comment

Comments

@frogydiak
Copy link

frogydiak commented Jul 4, 2023

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?

@nk-o
Copy link
Owner

nk-o commented Jul 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants