setTransitionType()function

setTransitionType(type: TransitionType): void
ParamType
typeTransitionType
The transition type to activate, constrained to a known TransitionType. required

Type-safe passthrough for React's addTransitionType() that checks type is one of our known view-transition types.

Examples

setTransitionType("forward")