We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fe145e commit 74ab6f8Copy full SHA for 74ab6f8
_javascript/modules/components/img-lazyload.js
@@ -1,15 +1,9 @@
1
/**
2
- * Set up image lazy-load
+ * Setup image lazy-load
3
*/
4
5
export function imgLazy() {
6
if ($('#core-wrapper img[data-src]') <= 0) {
7
return;
8
}
9
-
10
- /* Stop shimmer when image loaded */
11
- document.addEventListener('lazyloaded', function (e) {
12
- const $img = $(e.target);
13
- $img.parent().removeClass('shimmer');
14
- });
15
_sass/addon/commons.scss
@@ -91,6 +91,7 @@ img {
91
&.lazyloaded {
92
-webkit-animation: fade-in 0.35s ease-in;
93
animation: fade-in 0.35s ease-in;
94
+ z-index: 0;
95
96
97
0 commit comments