luis-almeida / unveil

A very lightweight jQuery plugin to lazy load images
4.16k stars 676 forks source link

loading images using CSS class #129

Open stelco opened 7 years ago

stelco commented 7 years ago

Hi, Ive been testing your script here: http://codepen.io/stelco74/pen/bBKazK

I was wondering, is it possible to load the images from a CSS class? We do this quite extensively on our company website. See example below...

.athena .kbslide { background-size: cover; background-position: center; width:100%; height:100%; position:absolute; }