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}>

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'}>

Activity allows you to pre-render parts of the app the user is likely to visit next, or restore state when a user returns to part of the app, so state like input fields isn’t lost:

In this post, we’re also sharing some of the problems we’re currently working on. As we iterate on solutions, you may see features we’re testing shared from the PRs we are landing. Keep in mind, as we try different ideas, we often change or remove different solutions after trying them out.

When the features we’re working on are shared too early, it can create churn and confusion in the community. To balance being transparent and limiting confusion, we’re sharing the problems we’re currently working on, without sharing too much about the solution we have in mind.

When new features are ready to try in the experimental release, we’ll announce them on the blog with docs included, similar to what we’re doing with View Transitions and Activity today. Before then, you can follow along, but let us cook.

No replies yet.