motion
motion copied to clipboard
Support v-show, to avoid missing @leave transitions
At its current state, vueuse/motion only seems to work on v-if, which creates problems for @leave transitions, whenever its required to use a conditional on the component.
With v-if, a component/element is removed from the DOM as soon as the state changes. This happens before the @leave has a chance to run.
If motion would support v-show, those issues would not happen.
+1 I am animating a list of elements in and want to animate them out on click of a button, can't seem to trigger this if v-if unloads the elements before an animation can happen and v-show is not supported either.
+1, v-if
can have a negative impact on SEO compared to v-show
.
Would you be able to provide a reproduction? 🙏
More info
Why do I need to provide a reproduction?
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.
If needs reproduction
labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
A link to a stackblitz project or public GitHub repository would be perfect. 👌
Please ensure that the reproduction is as minimal as possible.
You might also find these other articles interesting and/or helpful:
This issue was closed because it was open for 7 days without a reproduction.