Skip to content

Commit c075e11

Browse files
committed
Revert "fix: shimmer has the potential to cover images (#1100)"
This reverts commit 74ab6f8.
1 parent b6d1992 commit c075e11

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
/**
2-
* Setup image lazy-load
2+
* Set up image lazy-load
33
*/
44

55
export function imgLazy() {
66
if ($('#core-wrapper img[data-src]') <= 0) {
77
return;
88
}
9+
10+
/* Stop shimmer when image loaded */
11+
document.addEventListener('lazyloaded', function (e) {
12+
const $img = $(e.target);
13+
$img.parent().removeClass('shimmer');
14+
});
915
}

_sass/addon/commons.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ img {
9191
&.lazyloaded {
9292
-webkit-animation: fade-in 0.35s ease-in;
9393
animation: fade-in 0.35s ease-in;
94-
z-index: 0;
9594
}
9695
}
9796

0 commit comments

Comments
 (0)