Skip to content

Svelte 5: FLIP animations don't take outroing elements out of the flow #10867

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

Closed
Rich-Harris opened this issue Mar 21, 2024 · 1 comment · Fixed by #11208
Closed

Svelte 5: FLIP animations don't take outroing elements out of the flow #10867

Rich-Harris opened this issue Mar 21, 2024 · 1 comment · Fixed by #11208
Assignees
Milestone

Comments

@Rich-Harris
Copy link
Member

Describe the bug

In Svelte 4, we remove outroing elements out of the document flow before measuring the destinations of animating elements, so that they gracefully move to their new home:

https://svelte.dev/repl/6e891305e9644a7ca7065fa95c79d2d2?version=4.2.9

In Svelte 5, we... don't. Whether this looks batshit crazypants or merely broken depends on whether you're looking at this before or after #10798 is merged.

Reproduction

see above

Logs

No response

System Info

next

Severity

annoyance

@JonathonRP
Copy link

I think this may be a bug affecting my code too, im building a drag n drop component with framer motion port and noticed weird animations.

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

Successfully merging a pull request may close this issue.

3 participants