Skip to content

Commit d010d7c

Browse files
committed
[update] lazy loading用のplaceholder imgを追加
1 parent 6195856 commit d010d7c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/app/components/manage/dere-list/dere-list.component.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ mat-card {
2323
padding-bottom: 40px;
2424
}
2525

26-
img {
27-
opacity: 0;
28-
transition: opacity 500ms;
29-
}
30-
3126
img.ng-lazyloaded {
32-
opacity: 1;
27+
animation: fadein .5s;
28+
}
29+
@keyframes fadein {
30+
from {
31+
opacity: 0;
32+
}
33+
to {
34+
opacity: 1;
35+
}
3336
}

src/app/components/manage/dere-list/dere-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<mat-grid-list cols="1" rowHeight="1:1">
1010
<mat-grid-tile class="pointer">
1111
<mat-card>
12-
<img mat-card-image lazyLoad="http://125.6.169.35/idolmaster/image_sp/card/l/{{overview.latest_hash}}.jpg">
12+
<img mat-card-image lazyLoad="http://125.6.169.35/idolmaster/image_sp/card/l/{{overview.latest_hash}}.jpg" defaultImage="assets/cg-gray-600.jpg">
1313
</mat-card>
1414
<mat-grid-tile-footer style="margin-bottom:48px;">
1515
<div class="name">{{overview.name}}</div>

src/assets/cg-gray-600.jpg

25.8 KB
Loading

0 commit comments

Comments
 (0)