UPD: UI Animations

This commit is contained in:
Robert Kossessa
2024-02-06 23:53:14 +01:00
parent ed21ccabf0
commit 58f0509d87
6 changed files with 157 additions and 95 deletions

View File

@@ -14,18 +14,41 @@ store.fetchProfiles()
<main class="select-none w-screen h-screen flex flex-col">
<Navbar class="flex-none" />
<div class="flex-1 min-h-0 flex flex-row justify-center">
<div class="basis-1/3 min-w-60 flex-1 flex">
<ProfileManager
v-if="store.connected"
class="flex-1 flex flex-col border-solid border-0 border-r bg-zinc-900 bg-opacity-50" />
<div class="basis-1/3 min-w-60 flex-1 flex overflow-hidden">
<Transition name="slide-left">
<ProfileManager
v-if="store.connected"
class="flex-1 max-w-full flex flex-col border-solid border-0 border-r bg-zinc-900 bg-opacity-50" />
</Transition>
</div>
<DevicePreview
class="basis-1/3 flex-col flex" />
<div class="basis-2/5 flex-1 flex">
<ConfigPane
v-if="store.connected"
class="flex-1 flex flex-col border-solid border-0 border-l bg-zinc-900 bg-opacity-50" />
<div class="basis-2/5 flex-1 flex overflow-hidden">
<Transition name="slide-right">
<ConfigPane
v-if="store.connected"
class="flex-1 flex flex-col border-solid border-0 border-l bg-zinc-900 bg-opacity-50" />
</Transition>
</div>
</div>
</main>
</template>
</template>
<style scoped>
.slide-left-enter-active,
.slide-left-leave-active,
.slide-right-enter-active,
.slide-right-leave-active {
transition: transform 500ms ease;
}
.slide-left-enter-from,
.slide-left-leave-to {
transform: translateX(-100%);
}
.slide-right-enter-from,
.slide-right-leave-to {
transform: translateX(100%);
}
</style>