<picture class="image ">
<img class="" src="/images/banner/banner-480_480.png" alt="image alt text" loading="lazy" />
</picture>
<picture class="image {{ class }}" {{{ attributes }}}>
{{#each sources}}
<source data-srcset="{{ src }}" media="{{ mediaQuery }}" />
{{/each}}
<img class="{{ imgClass }}"
src="{{ src }}"
alt="{{ alt }}"
loading="lazy"
{{{ imgAttributes }}}
/>
</picture>
{
"src": "/images/banner/banner-480_480.png",
"dataSrc": "/images/banner/banner-480_480.png",
"alt": "image alt text"
}
$image__width : 100% !default;
$image__transition : $transition-fade !default;
$image__wrapper-background-color: $white !default;
.image {
display: block;
width: $image__width;
max-width: $image__width;
transition: $image__transition;
&.lazyload,
&.lazyloading {
opacity: 0;
}
&.lazyloaded {
opacity: 1;
}
}
img,
picture {
@extend .image;
}
.lazyload-wrapper {
position: relative;
background-color: $image__wrapper-background-color;
transition: $transition-base;
}
There are no notes for this item.