Skip to content

Image Height Calculation is Off using Data Attribute #221

@frogydiak

Description

@frogydiak

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions