disable img bg animation

causes performance issues
This commit is contained in:
perennial
2024-11-19 00:02:59 +11:00
parent 1a3323922a
commit 35e74ca146
+2 -1
View File
@@ -333,7 +333,8 @@ a:not(:has(img)):not([class*="btn"]):not(.nav-link) {
// rules for image placeholder
img {
background-color: map-get($custom-colors, neutral-700);
animation: placeholder-glow-custom 2s ease-in-out infinite;
/* TODO: properly disable animation once image is loaded to avoid performance issues */
/* animation: placeholder-glow-custom 2s ease-in-out infinite; */
}
@keyframes placeholder-glow-custom {