<picture class="image ">
    <source srcset="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII=" data-srcset="/images/banner/banner-480_480.png" media="(max-width: 480px)" />
    <source srcset="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII=" data-srcset="/images/banner/banner-768_402.png" media="(max-width: 768px)" />
    <source srcset="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII=" data-srcset="/images/banner/banner-992_254.png" media="(max-width: 1024px)" />
    <source srcset="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII=" data-srcset="/images/banner/banner-1170_300.png" media="" />

    <img class="lazyload " src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII=" data-src="/images/banner/banner-480_480.png" alt="image alt text" />
</picture>
<picture
    class="image {{ class }}"
    {{{ attributes }}}
>
    {{#each sources}}
        <source
            srcset="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII="
            data-srcset="{{ src }}"
            media="{{ mediaQuery }}"
        />
    {{/each}}

    <img
        class="lazyload {{ imgClass }}"
        src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII="
        data-src="{{ defaultSrc }}"
        alt="{{ alt }}"
        {{{ imgAttributes }}}
    />
</picture>
{
  "src": "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII=",
  "dataSrc": "/images/banner/banner-480_480.png",
  "alt": "image alt text",
  "defaultSrc": "/images/banner/banner-480_480.png",
  "sources": [
    {
      "src": "/images/banner/banner-480_480.png",
      "mediaQuery": "(max-width: 480px)"
    },
    {
      "src": "/images/banner/banner-768_402.png",
      "mediaQuery": "(max-width: 768px)"
    },
    {
      "src": "/images/banner/banner-992_254.png",
      "mediaQuery": "(max-width: 1024px)"
    },
    {
      "src": "/images/banner/banner-1170_300.png",
      "mediaQuery": ""
    }
  ]
}
  • Content:
    $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;
    }
    
  • URL: /components/raw/image/_image.scss
  • Filesystem Path: build/components/Molecules/image/_image.scss
  • Size: 569 Bytes

There are no notes for this item.