We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d1992 commit c075e11Copy full SHA for c075e11
_javascript/modules/components/img-lazyload.js
@@ -1,9 +1,15 @@
1
/**
2
- * Setup image lazy-load
+ * Set up 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,7 +91,6 @@ 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