Skip to content

1.1.4

Compare
Choose a tag to compare
@optimalisatie optimalisatie released this 12 Feb 17:20
· 49 commits to master since this release
  • data-src and data-srcset attributes removed by default inview callback for lazy loading images to allow placeholder CSS based on the img[data-src] selector.
img[data-src] {
    background-image: url(placeholder.svg);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: #f9f9f9;
    cursor: context-menu;
}

img[data-src]:hover {
    background-color:#efefef;
}

Result:

Screenshot from 2020-02-12 17:26:22