From 5616fbd7cf135f32a410b3ccb4561dc41b9abc32 Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 31 Jan 2025 18:45:03 +0100 Subject: [PATCH] chore: list animations --- src/components/Timetable/TimetableStorage.vue | 6 +++--- src/style.css | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/components/Timetable/TimetableStorage.vue b/src/components/Timetable/TimetableStorage.vue index e9f2ef7..44a4c4f 100644 --- a/src/components/Timetable/TimetableStorage.vue +++ b/src/components/Timetable/TimetableStorage.vue @@ -9,8 +9,8 @@
{{ $t('storage-preview-title') }}
{{ $t('storage-preview-empty') }}
- + diff --git a/src/style.css b/src/style.css index 3e7c5f5..54a9db7 100644 --- a/src/style.css +++ b/src/style.css @@ -55,6 +55,25 @@ body { visibility: visible; } +/* Animations */ +.list-move, +.list-enter-active, +.list-leave-active { + transition: all 0.25s ease; +} + +.list-enter-from, +.list-leave-to { + opacity: 0; + transform: translateY(30px); +} + +.list-leave-active { + position: absolute; + width: 100%; +} + +/* Print mode */ @media print { :root { color-scheme: light;