1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-07 16:17:50 +00:00

Revert "fix: shimmer has the potential to cover images (#1100)"

This reverts commit 74ab6f8adc2a7930e7bf21543ad17ded386c93c3.
This commit is contained in:
Cotes Chung 2023-06-26 21:54:20 +08:00
parent b6d1992f85
commit c075e11a4e
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
2 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,15 @@
/**
* Setup image lazy-load
* Set up image lazy-load
*/
export function imgLazy() {
if ($('#core-wrapper img[data-src]') <= 0) {
return;
}
/* Stop shimmer when image loaded */
document.addEventListener('lazyloaded', function (e) {
const $img = $(e.target);
$img.parent().removeClass('shimmer');
});
}

View File

@ -91,7 +91,6 @@ img {
&.lazyloaded {
-webkit-animation: fade-in 0.35s ease-in;
animation: fade-in 0.35s ease-in;
z-index: 0;
}
}