Skip to content
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

Fix side panel exit animation #350

Merged
merged 15 commits into from May 10, 2024
Merged

Conversation

felixhabib
Copy link
Contributor

Improve the side panel exit animation by not the hiding of panel content before the animation has completely finished. As a result, the panel will always display the content of the most recently active tab, even during the closing animation.

Using react-transition-group library to unmount the side panel on exit.

Before (10% speed)

before.mov

After (10% speed)

after.mov

@felixhabib felixhabib requested a review from a team as a code owner May 10, 2024 00:12
Copy link

changeset-bot bot commented May 10, 2024

🦋 Changeset detected

Latest commit: ed29c47

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

cypress/support/utils.js Outdated Show resolved Hide resolved
src/Playroom/Toolbar/Toolbar.css.ts Outdated Show resolved Hide resolved
.changeset/beige-tips-swim.md Outdated Show resolved Hide resolved
src/Playroom/Toolbar/Toolbar.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@askoufis askoufis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preview site LGTM.

@felixhabib felixhabib merged commit a0724d2 into master May 10, 2024
7 checks passed
@felixhabib felixhabib deleted the fix-close-panel-animation-1 branch May 10, 2024 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants