motion icon indicating copy to clipboard operation
motion copied to clipboard

Support v-show, to avoid missing @leave transitions

Open urbgimtam opened this issue 1 year ago • 2 comments

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.

urbgimtam avatar Dec 18 '23 10:12 urbgimtam

+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.

louisjrdev avatar Jan 04 '24 22:01 louisjrdev

+1, v-if can have a negative impact on SEO compared to v-show.

e-tho avatar Feb 20 '24 22:02 e-tho

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:

github-actions[bot] avatar Feb 23 '24 15:02 github-actions[bot]

This issue was closed because it was open for 7 days without a reproduction.

github-actions[bot] avatar Mar 02 '24 01:03 github-actions[bot]