sveltejs / svelte

Cybernetically enhanced web apps
https://svelte.dev
MIT License
76.8k stars 3.98k forks source link

Svelte 5: flip animation breaks entry transition with delay #11484

Closed mquandalle closed 1 week ago

mquandalle commented 1 week ago

Describe the bug

When an item has both a animate:flip directive and in:scale={{delay: 1000}}, it immediately appears before disappearing and being animated. This was working as expected on Svelte 4.

Reproduction

Svelte 5 REPL - Svelte 4 REPL

Logs

No response

System Info

System:
    OS: macOS 14.3.1
    CPU: (8) arm64 Apple M2
    Memory: 116.89 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - û/.nvm/versions/node/v18.16.0/bin/node
    Yarn: 1.22.19 - û/.nvm/versions/node/v18.16.0/bin/yarn
    npm: 9.5.1 - û/.nvm/versions/node/v18.16.0/bin/npm
    pnpm: 8.14.1 - û/.nvm/versions/node/v18.16.0/bin/pnpm
    bun: 1.1.3 - û/.bun/bin/bun
  Browsers:
    Brave Browser: 114.1.52.126
    Safari: 17.3.1
  npmPackages:
    svelte: next => 5.0.0-next.123

Severity

blocking an upgrade

7nik commented 1 week ago

duplicate of #11270