-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
After updating my project from svelte 4 to 5 ("5.0.0-next.264"), the behavior for svelte's animate:flip action has changed subtly. I'm using the built in animation and transition actions in tandem with @neodrag/svelte but I think the issue is in the way svelte 5 reconciles changes to {#each} blocks.
What I expect to happen is the flip animation plays after I release the element I'm dragging. In svelte 5, the flip animation doesn't trigger and it abruptly snaps back to its start position.
Reproduction
Minimal reproduction: https://github.com/jessecoleman/svelte-5-flip
v4:
https://github.com/user-attachments/assets/316cc2df-bdc3-4b0d-ac1f-76778aaad8de
v5:
https://github.com/user-attachments/assets/a5f72ed8-b146-43fd-9d08-12f02c78f22f
Logs
No response
System Info
System:
OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
CPU: (22) x64 Intel(R) Core(TM) Ultra 7 155H
Memory: 12.14 GB / 15.31 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
pnpm: 8.15.5 - ~/.local/share/pnpm/pnpm
npmPackages:
svelte: 5.0.0-next.264 => 5.0.0-next.264Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels