The data-wdith and data-height attributes still refer to the main full-size image and don't need repeating as they're only used to calculate the image aspect-ratio.
JavaScript
To use this option, specify which image_attr to use when initialising parallax().
Allows alternative 'data-image-mobile' attribute to be specified for loading mobile optimised images:
HTML
The
data-wdith
anddata-height
attributes still refer to the main full-size image and don't need repeating as they're only used to calculate the image aspect-ratio.JavaScript
To use this option, specify which
image_attr
to use when initialising parallax().Attribution: idea and implementation lifted pretty much wholesale from https://github.com/pederan/Parallax-ImageScroll.