diff --git a/components/GalleryImageViewer.vue b/components/GalleryImageViewer.vue
index 20f3205..00dd3b9 100644
--- a/components/GalleryImageViewer.vue
+++ b/components/GalleryImageViewer.vue
@@ -6,7 +6,7 @@
-
+
@@ -133,13 +133,15 @@ export default {
}
.image {
+ position: absolute;
width: auto;
height: auto;
max-height: 100%;
max-width: 100%;
margin: 0 auto;
top: 50%;
- transform: translateY(-50%);
+ left: 50%;
+ transform: translate(-50%, -50%);
}
@media (max-width: $bp__layout) {
@@ -222,8 +224,12 @@ export default {
}
.trans-image {
- &-enter-active, &-leave-active {
- transition: opacity 1s;
+ &-enter-active {
+ transition: opacity 1s .4s;
+ }
+
+ &-leave-active {
+ transition: opacity .5s;
}
&-enter, &-leave-to {