Framework
Version

ViewTransitionOptions type

The ViewTransitionOptions type is used to define a viewTransition type.

tsx
interface ViewTransitionOptions {
  types: Array<string>
}
interface ViewTransitionOptions {
  types: Array<string>
}

ViewTransitionOptions properties

The ViewTransitionOptions type accepts an object with a single property:

types property

  • Type: Array<string>
  • Required
  • The types array that will be passed to the document.startViewTransition({update, types}) call;
Our Partners
Clerk
Netlify
Neon
Convex
Sentry
Vercel
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.