Skip to content

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

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
asaloff opened this issue May 14, 2020 · 2 comments
Closed
Labels

Comments

@asaloff
Copy link

asaloff commented May 14, 2020

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

@pushkine
Copy link
Contributor

will be fixed with #4742

@dummdidumm
Copy link
Member

Fixed in Svelte 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants