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 25
25
26
26
</ div > <!-- .vue-lb-header -->
27
27
< div class ="vue-lb-figure ">
28
- < img
29
- v-lazy ="imagesSrc[select] "
30
- class ="vue-lb-modal-image "
31
- >
28
+ < transition mode ="out-in " name ="fade ">
29
+ < img
30
+ :key ="imagesSrc[select].src "
31
+ :src ="imagesSrc[select].src "
32
+ class ="vue-lb-modal-image "
33
+ >
34
+ </ transition >
32
35
33
36
< div
34
37
class ="vue-lb-info "
62
65
63
66
< div
64
67
v-for ="(image, index) in imagesThumb "
65
- :key ="image.src + index "
68
+ :key ="index "
66
69
:class ="'vue-lb-modal-thumbnail' + (thumbSelect === index ? '-active' : '') "
67
70
v-lazy:background-image ="image "
68
71
@click ="showImage(index + beginThumbIndex) "
108
111
</ svg >
109
112
</ span >
110
113
</ button >
111
- </ div > <!-- .vue-lb-container -->
112
-
114
+ </ div > <!-- .vue-lb-container -->
You can’t perform that action at this time.
0 commit comments