Need help styling a login/signup component in Vue.js where flipping between the two cards isn't working smoothly. The transition is causing one card to move down and right while the other comes in from the bottom right. It's hard to explain the issue, so here are some images:
https://i.stack.imgur.com/hAMu9.png
https://i.stack.imgur.com/dNCsx.png
[![enter image description here][4]][4]
Here is the code for the component:
<template>
<main class="login-body">
<transition name="flip">
<div class="login-box" v-if="currentForm === 'login'">
...
</div></transition
>
<transition name="flip-reverse">
<div class="login-box" v-if="currentForm === 'register'">
...
</div></transition
>
</main>
</template>
<script>
import { Auth } from "aws-amplify";
export default {
name: "HomeView",
data() {
return {
currentForm: "login",
email: "",
password: "",
confirmPassword: "",
};
},
methods: {
// Toggle and sign-in/sign-up functions
},
};
</script>
<style>
/* CSS styles */
</style>
Any assistance on resolving this transition issue would be greatly appreciated 😊