From 1cc799706c11c1ff008fa91e2cad3bcb58a69241 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 16 Jul 2022 00:27:37 +0200 Subject: [PATCH] =?UTF-8?q?Globalny=20TrainModal;=20animacja=20przej=C5=9B?= =?UTF-8?q?cia?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.scss | 13 +++ src/App.vue | 15 +++- src/components/Global/TrainModal.vue | 89 ++++--------------- .../SceneryInfo/SceneryInfoUserList.vue | 18 +++- .../SceneryView/SceneryTimetable.vue | 18 +--- src/components/TrainsView/TrainSchedule.vue | 3 +- src/components/TrainsView/TrainTable.vue | 38 ++------ src/scripts/interfaces/Station.ts | 1 + src/store/store.ts | 4 +- src/store/storeTypes.ts | 2 + 10 files changed, 73 insertions(+), 128 deletions(-) diff --git a/src/App.scss b/src/App.scss index 324d57f..3589e72 100644 --- a/src/App.scss +++ b/src/App.scss @@ -17,6 +17,19 @@ } } +.modal-anim { + &-enter-active, + &-leave-active { + transition: all $animDuration $animType; + } + + &-enter-from, + &-leave-to { + transform: translateY(-25%); + opacity: 0; + } +} + .route { margin: 0 0.2em; diff --git a/src/App.vue b/src/App.vue index 79cb88c..d42b58a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,13 @@