Skip to content

Commit 46ffe8f

Browse files
committed
lazy-load images
1 parent 2069fff commit 46ffe8f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

website/src/styles/index.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,3 +552,26 @@ a.primary-button {
552552
color: $b-lilac-70;
553553
}
554554
}
555+
556+
// LAZY LOAD
557+
.lazy-load-image-background {
558+
background-size: cover;
559+
background-position: center;
560+
background-repeat: no-repeat;
561+
transition: opacity 0.3s ease-in-out;
562+
opacity: 0;
563+
}
564+
565+
.lazy-load-image-background.lazy-load-image-loaded {
566+
opacity: 1;
567+
}
568+
569+
.blur {
570+
filter: blur(10px);
571+
transition: filter 0.3s ease;
572+
}
573+
574+
/* Optional: Remove blur once loaded */
575+
.lazy-load-image-background.lazy-load-image-loaded.blur {
576+
filter: blur(0);
577+
}

0 commit comments

Comments
 (0)