Skip to content

Commit 3ed8196

Browse files
Update src/content/reference/react/ViewTransition.md
Add Space Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ec92937 commit 3ed8196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/ViewTransition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Wrap elements in `<ViewTransition>` to animate them when they update inside a [T
3838

3939
- `enter`: If a `ViewTransition` itself gets inserted in this Transition, then this will activate.
4040
- `exit`: If a `ViewTransition` itself gets deleted in this Transition, then this will activate.
41-
- `update`: If a `ViewTransition` has any DOM mutations inside it that React is doing (such as a prop changing) or if the `ViewTransition` boundary itself changes size or position due to an immediate sibling. If there are nested` ViewTransition` then the mutation applies to them and not the parent.
41+
- `update`: If a `ViewTransition` has any DOM mutations inside it that React is doing (such as a prop changing) or if the `ViewTransition` boundary itself changes size or position due to an immediate sibling. If there are nested `ViewTransition` then the mutation applies to them and not the parent.
4242
- `share`: If a named `ViewTransition` is inside a deleted subtree and another named `ViewTransition` with the same name is part of an inserted subtree in the same Transition, they form a Shared Element Transition, and it animates from the deleted one to the inserted one.
4343

4444
By default, `<ViewTransition>` animates with a smooth cross-fade (the browser default view transition). You can customize the animation by providing a [View Transition Class](#view-transition-class) to the `<ViewTransition>` component. You can customize animations for each kind of trigger (see [Styling View Transitions](#styling-view-transitions)).

0 commit comments

Comments
 (0)