diff --git a/components/GalleryImageViewer.vue b/components/GalleryImageViewer.vue
index c981201..c8fb1f4 100644
--- a/components/GalleryImageViewer.vue
+++ b/components/GalleryImageViewer.vue
@@ -2,7 +2,7 @@
-
+
@@ -221,20 +221,23 @@ export default {
}
}
-.trans-image-enter-active, .trans-image-leave-active {
- transition: opacity 5s;
+.trans-image {
+ &-enter-active, &-leave-active {
+ transition: opacity .5s;
+ }
+
+ &-enter, &-leave-to {
+ opacity: 0;
+ }
}
-.trans-image-enter, .trans-image-leave-to {
- opacity: 0;
-}
+.trans-bg-image {
+ &-enter-active, &-leave-active {
+ transition: opacity .3s;
+ }
-
-.trans-bg-image-enter-active, .trans-bg-image-leave-active {
- transition: opacity 1s;
-}
-
-.trans-bg-image-enter, .trans-bg-image-leave-to {
- opacity: 0;
+ &-enter, &-leave-to {
+ opacity: 0;
+ }
}