Skip to content

Slide transition jumps on the way out if height changes while it's visible #4831

Closed
@asaloff

Description

@asaloff

Describe the bug
When using a slide transition on an element thats height shrinks while it's visible, when it transitions out, it jumps back to the original height before transitioning out.

2020-05-13_20-14-00

Logs
N/A

To Reproduce
REPL: https://svelte.dev/repl/3ffb8bc1d6714cfba17fe6f0eb168759?version=3.22.2

  • Expand the div
  • Click the "Remove some options" button
  • Collapse the div and watch it's height jump before transitioning out

Expected behavior
The div should collapse from it's current height and not grow first.

Stacktraces
N/A

Information about your Svelte project:
N/A - reproduced in the REPL

Severity
Not severe. I can do regular CSS transitions. Just wanted to report the issue.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions