# React <ViewTransition>

> React 19.3's built-in wrapper for the browser View Transitions API: animated route and state changes with no library.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/react-view-transition

free

React 19.3's built-in wrapper for the browser View Transitions API: animated route and state changes with no library.

by React team (Meta)[GitHub](https://github.com/facebook/react)[npm](https://npmjs.com/package/react)

[visit](https://react.dev/reference/react/ViewTransition?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://react.dev/reference/react/ViewTransition website" width="1200" height="750" fetchpriority="high" class="aspect-[16/10] w-full object-cover object-top">](https://react.dev/reference/react/ViewTransition?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)

The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

no preview

### [Rive](https://tastebase.ehsanulsiam.workers.dev/browse/rive)

Runtime for interactive Rive (.riv) animations with state machines, driven from code.

no preview

### [dotLottie React](https://tastebase.ehsanulsiam.workers.dev/browse/dotlottie-react)

Player for Lottie (.json) and compressed .lottie animations exported from After Effects or Lottie Creator.

no preview

### [Torph](https://tastebase.ehsanulsiam.workers.dev/browse/torph)

Animated text morphing: labels change letter by letter instead of swapping.

## For your agent

##### Install

`npm i react@^19.3 react-dom@^19.3`

##### Use it for

- a list thumbnail that morphs into the detail page header on navigation (shared name)
- cross-fading between routes or tab panels in React 19.3+
- a content swap where you want the browser to snapshot old and new states for you

##### Skip it when

- React 19.2 or older: use motion's layoutId, or next-view-transitions in Next.js
- gesture-driven or interruptible motion (drag, swipe): view transitions cannot be scrubbed or interrupted; use motion
- frequent micro-interactions (hover, toggles): each transition freezes interaction briefly; use CSS transitions

##### What's inside8 free

- <ViewTransition>
- addTransitionType
- Enter/exit animation
- Shared element animation
- List reorder animation
- Suspense animation
- Activity enter/exit
- Transition types

##### Facts

**Frameworks**
react

**Styling**
css

**Weight**
tiny

**Accessibility**
ok

**Maturity**
stable

**License**
MIT

**Price**
Free

##### Pairs with

[Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)

##### Alternatives

[Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)

```
import { ViewTransition, startTransition } from 'react'

<ViewTransition>
  <Panel key={tab} />
</ViewTransition>

<button onClick={() => startTransition(() => setTab('settings'))}>Settings</button>
```

https://react.dev/reference/react/ViewTransition

Loading website

[Visit](https://react.dev/reference/react/ViewTransition?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
