parent
4fe145e980
commit
74ab6f8adc
2 changed files with 2 additions and 7 deletions
|
@ -6,10 +6,4 @@ export function imgLazy() {
|
||||||
if ($('#core-wrapper img[data-src]') <= 0) {
|
if ($('#core-wrapper img[data-src]') <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stop shimmer when image loaded */
|
|
||||||
document.addEventListener('lazyloaded', function (e) {
|
|
||||||
const $img = $(e.target);
|
|
||||||
$img.parent().removeClass('shimmer');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,6 +91,7 @@ img {
|
||||||
&.lazyloaded {
|
&.lazyloaded {
|
||||||
-webkit-animation: fade-in 0.35s ease-in;
|
-webkit-animation: fade-in 0.35s ease-in;
|
||||||
animation: fade-in 0.35s ease-in;
|
animation: fade-in 0.35s ease-in;
|
||||||
|
z-index: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue