File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ img.vue-lb-modal-image {
220
220
right : 10px ;
221
221
}
222
222
223
+ .vue-lb-open {
224
+ overflow : hidden;
225
+ }
226
+
223
227
@media (min-width : 500px ) {
224
228
.vue-lb-thumbnail-arrow {
225
229
width : 40px ;
@@ -232,7 +236,11 @@ img.vue-lb-modal-image {
232
236
}
233
237
}
234
238
235
- .vue-lb-open {
236
- overflow : hidden;
239
+ .fade-enter-active ,
240
+ .fade-leave-active {
241
+ transition : opacity .3s ease;
237
242
}
238
243
244
+ .fade-enter , .fade-leave-to {
245
+ opacity : 0 ;
246
+ }
Original file line number Diff line number Diff line change 26
26
27
27
</ div > <!-- .vue-lb-header -->
28
28
< div class ="vue-lb-figure ">
29
- < img
30
- v-lazy ="imagesSrc[select] "
31
- class ="vue-lb-modal-image "
32
- >
29
+ < transition mode ="out-in " name ="fade ">
30
+ < img
31
+ :key ="imagesSrc[select].src "
32
+ :src ="imagesSrc[select].src "
33
+ class ="vue-lb-modal-image "
34
+ >
35
+ </ transition >
33
36
34
37
< div
35
38
class ="vue-lb-info "
63
66
64
67
< div
65
68
v-for ="(image, index) in imagesThumb "
66
- :key ="image.src + index "
69
+ :key ="index "
67
70
:class ="'vue-lb-modal-thumbnail' + (thumbSelect === index ? '-active' : '') "
68
71
v-lazy:background-image ="image "
69
72
@click ="showImage(index + beginThumbIndex) "
109
112
</ svg >
110
113
</ span >
111
114
</ button >
112
- </ div > <!-- .vue-lb-container -->
113
-
115
+ </ div > <!-- .vue-lb-container -->
You can’t perform that action at this time.
0 commit comments