setTransitionType()function
setTransitionType(type: TransitionType): void
| Param | Type | |
|---|---|---|
type | TransitionType | 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")