Post

To animate a transition, you can add <ViewTransition> around part of the app to declare “what” to animate. ViewTransition activates "when" an update is caused by an animation trigger like startTransition, useDeferredValue, or Suspense, and "how" to animate is defined in CSS.

For shared element transitions, you can add a “name”. This will animate an item from one part of the app to another: <ViewTransition name={id}>

1 repost11 likes

Activity is also ready to try in react@experimental. Activity is a new component to hide and show parts of the UI: <Activity mode={isVisible ? 'visible' : 'hidden'}>