Skip to content

Crossfade transition bug when element replaces another one. #4582

Closed
@oreilles

Description

@oreilles

Having two elements A and B, both using the crossfade transition on in and out.

  • When A goes elsewhere than B, the crossfade transition works as expected.
  • When A goes where B is, the crossfade fallback is applied to A's origin element, and B instantly turns into A without any transition.
  • When A and B swap positions, both elements instantly turns into the other without any transition.

Replicate:
https://svelte.dev/repl/92dca5bdbeef4b939a10eb426b5807e5?version=3.20.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions