Revert "fix: shimmer has the potential to cover images (#1100)"
This reverts commit 74ab6f8adc
.
This commit is contained in:
parent
b6d1992f85
commit
c075e11a4e
2 changed files with 7 additions and 2 deletions
|
@ -1,9 +1,15 @@
|
||||||
/**
|
/**
|
||||||
* Setup image lazy-load
|
* Set up image lazy-load
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export function imgLazy() {
|
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,7 +91,6 @@ 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