Skip to content

Commit 8258887

Browse files
authored
Update src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md
1 parent 660222b commit 8258887

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,7 @@ function navigate(url) {
12951295

12961296
`url` 改变时,`<ViewTransition>` 和新路由会被渲染。由于 `<ViewTransition>` 是在 `startTransition` 内部更新的,因此 `<ViewTransition>` 会被激活以进行动画处理。
12971297

1298+
12981299
默认情况下,视图过渡包含浏览器默认的交叉淡入淡出动画。将其添加到我们的示例中,现在每当我们在页面之间导航时都会有交叉淡入淡出效果:
12991300

13001301
<Sandpack>

0 commit comments

Comments
 (0)