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

strange crossfade behavior on fast update #3398

Closed
knobo opened this issue Aug 12, 2019 · 5 comments
Closed

strange crossfade behavior on fast update #3398

knobo opened this issue Aug 12, 2019 · 5 comments

Comments

@knobo
Copy link

knobo commented Aug 12, 2019

If you click three-four times "fast" on the "ToggleMe" link you get strange behavior. Fast means before the animation is done.

The origin and destination of the animation is not the list anymore, but the upper left corner close to the button.

https://svelte.dev/repl/60da5412b4f94920ac5d3ef48a540a5d?version=3.8.0
[edit: removed some non-relevant code from the example]

@knobo
Copy link
Author

knobo commented Aug 14, 2019

Another example of strange crossfade behavior.
I have two groups of lists. One under the


and one above.
The elements seems to flow from the list from under the line, to the list above the line.
They should not cross the line.

So it looks like the crossfade function does not return a unique send/receive pair for each component.

What's even stranger, is that the keys are not the same.

https://svelte.dev/repl/30b4891e3a8d4d39bd4832e50dfdcc87?version=3.8.0

Edit: Maybe crossfade is not possible between components?

@stale
Copy link

stale bot commented Dec 27, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale-bot label Dec 27, 2021
@dummdidumm
Copy link
Member

The first works correctly when I remove animation:flip

@stale stale bot removed the stale-bot label Dec 28, 2021
@knobo
Copy link
Author

knobo commented Dec 29, 2021

The flip thing is taken from this example: https://svelte.dev/examples/animate
These two animation directives are stepping on each others toes.

@dummdidumm dummdidumm removed the triage label Jan 19, 2024
@Conduitry
Copy link
Member

This appears to be fixed in Svelte 5.

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

5 participants