mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-03 12:07:12 +00:00
chore: add blend between views in modman
This commit is contained in:
@@ -6,11 +6,17 @@ import ModManHeader from "./components/ModManHeader.vue";
|
||||
<main class="container">
|
||||
<ModManHeader />
|
||||
|
||||
<RouterView />
|
||||
<RouterView v-slot="{ Component }">
|
||||
<Transition name="blend">
|
||||
<component :is="Component" />
|
||||
</Transition>
|
||||
</RouterView>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@use "@style/variables";
|
||||
|
||||
.container {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
@@ -19,4 +25,14 @@ import ModManHeader from "./components/ModManHeader.vue";
|
||||
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.blend-enter-from,
|
||||
.blend-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.blend-enter-active,
|
||||
.blend-leave-active {
|
||||
transition: opacity 0.15s ease-in-out;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user