Created
July 10, 2017 19:22
-
-
Save shopifypartners/924c78d3303cd90b0a7671f94d65f51c to your computer and use it in GitHub Desktop.
Responsive images: Narrative image widths – https://www.shopify.com/partners/blog/using-responsive-images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img class="slideshow__image slideshow__image--{{ block.id }} lazyload" | |
src="{{ block.settings.image | img_url: '300x' }}" | |
data-src="{{ img_url }}" | |
data-widths="[540, 720, 900, 1080, 1296, 1512, 1728, 1944, 2048]" | |
data-aspectratio="{{ block.settings.image.aspect_ratio }}" | |
data-sizes="auto" | |
data-parent-fit="cover" | |
alt="{{ block.settings.image.alt | escape }}"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just documenting that it will result in something like this on the Narrative Warm theme.