Skip to content

Conversation

EugeneChoi4
Copy link
Contributor

@EugeneChoi4 EugeneChoi4 commented Sep 24, 2025

Summary

Introduced <ViewTransition> to the React Compiler Playground. Added an initial animation on the config panel opening/closing to allow for a smoother visual experience. Previously, the panel would flash in and out of the screen upon open/close.

How did you test this change?

Screen.Recording.2025-09-29.at.1.56.35.PM.mov

onToggle={setIsExpanded}
onToggle={() => {
startTransition(() => {
addTransitionType('config-panel');
Copy link
Contributor

Choose a reason for hiding this comment

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

This type could be a constant as its important it matches across usages through these modules but should also be unique from anything used in future unrelated transitions.

You could have something like apps/playground/lib/transitionTypes.ts where you export from.

@jackpope
Copy link
Contributor

I just noticed when you have show internals on the collapsed tabs fade instead of slide. It should be possible to put a container around the remaining tabs and slide those as well.

Copy link
Contributor

@jackpope jackpope left a comment

Choose a reason for hiding this comment

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

Thanks for the updates, this is looking good!

@EugeneChoi4 EugeneChoi4 merged commit 319a786 into facebook:main Sep 29, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants