Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for transition mode #56

Open
tonyketcham opened this issue Apr 30, 2021 · 0 comments
Open

Support for transition mode #56

tonyketcham opened this issue Apr 30, 2021 · 0 comments

Comments

@tonyketcham
Copy link

Problem

Transitioning between two elements via wrapping two v-if v-else blocks with a transition element results in both elements appearing stacked on top of each other temporarily rather than waiting on one block to finish transitioning out before allowing the other block to transition in. Here's an example of that problem in the Vue docs.

Proposed Solution

Adding a prop that allows the user to hook into and specify the transition mode. For example, being able to have:

<template>
  <transition :mode="mode">...</transition>
</template>

<script>
export default {
...
  props: {
    mode: {
      type: String,
      default: 'out-in',
    },
    ...
  },
...
}
</script>

This change would fix the issue by default and allow users to customize the transitioning behavior between objects if they want to deviate from that behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant