이미지 lazy loading 적용
This commit is contained in:
@@ -165,6 +165,16 @@ body {
|
||||
background: #08080f;
|
||||
display: block;
|
||||
}
|
||||
/* 이미지 로딩 전 shimmer */
|
||||
.card-thumb:not([src]) {
|
||||
background: linear-gradient(90deg, #08080f 25%, #14141f 50%, #08080f 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: thumb-shimmer 1.4s ease-in-out infinite;
|
||||
}
|
||||
@keyframes thumb-shimmer {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
.card-thumb-placeholder {
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1;
|
||||
|
||||
Reference in New Issue
Block a user