Skip to content

Commit 74ab6f8

Browse files
committed
fix: shimmer has the potential to cover images (#1100)
Resolves #1100
1 parent 4fe145e commit 74ab6f8

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
/**
2-
* Set up image lazy-load
2+
* Setup 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-
});
159
}

_sass/addon/commons.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ img {
9191
&.lazyloaded {
9292
-webkit-animation: fade-in 0.35s ease-in;
9393
animation: fade-in 0.35s ease-in;
94+
z-index: 0;
9495
}
9596
}
9697

0 commit comments

Comments
 (0)