You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2458,17 +2458,17 @@ root.render(
2458
2458
2459
2459
</Sandpack>
2460
2460
2461
-
Since our router already updates the route using `startTransition`, this one line change to add `<ViewTransition>` activates with the default cross-fade animation.
2461
+
라우터는 이미 `startTransition`을 사용하여 라우트를 업데이트하고 있으므로, `<ViewTransition>`를 한 줄 추가함으로써 기본 크로스 페이드 애니메이션이 활성화됩니다.
2462
2462
2463
-
If you're curious how this works, see the docs for [How does `<ViewTransition>` work?](/reference/react/ViewTransition#how-does-viewtransition-work)
2463
+
이 기능이 어떻게 작동하는지 궁금하다면, 문서의 [`<ViewTransition>`은 어떻게 작용하나요?](/reference/react/ViewTransition#how-does-viewtransition-work)를 읽어보세요.
2464
2464
2465
2465
<Note>
2466
2466
2467
-
#### Opting out of `<ViewTransition>`animations {/*opting-out-of-viewtransition-animations*/}
2467
+
#### `<ViewTransition>`애니메이션 선택 해제하기 {/*opting-out-of-viewtransition-animations*/}
2468
2468
2469
-
In this example, we're wrapping the root of the app in `<ViewTransition>` for simplicity, but this means that all transitions in the app will be animated, which can lead to unexpected animations.
2469
+
이 예시에서는 단순화하기 위해 앱의 루트를 `<ViewTransition>`으로 래핑하고 있지만, 이렇게 하면 앱의 모든 전환에 애니메이션이 적용되므로 예기치 않은 애니메이션이 발생할 수 있습니다.
2470
2470
2471
-
To fix, we're wrapping route children with `"none"` so each page can control its own animation:
2471
+
이 문제를 해결하기 위해 라우트 자식을 `"none"`으로 래핑하여 각 페이지가 자신의 애니메이션을 제어할 수 있도록 합니다:
2472
2472
2473
2473
```js
2474
2474
// Layout.js
@@ -2477,7 +2477,7 @@ To fix, we're wrapping route children with `"none"` so each page can control its
2477
2477
</ViewTransition>
2478
2478
```
2479
2479
2480
-
In practice, navigations should be done via "enter" and "exit" props, or by using Transition Types.
2480
+
실제로는, `"enter"` 및 `"exit"` props나 Transition Types을 사용하여 내비게이션을 구현해야 합니다.
2481
2481
2482
2482
</Note>
2483
2483
@@ -4901,7 +4901,7 @@ root.render(
4901
4901
4902
4902
### Animating based on cause {/*animating-based-on-cause*/}
4903
4903
4904
-
Sometimes, you may want elements to animate differently based on how it was triggered. For this use case, we've added a new API called `addTransitionType` to specify the cause of a transition:
4904
+
때로는 트리거된 방식에 따라 요소의 애니메이션을 다르게 적용하고 싶을 때가 있습니다. 이 사용 사례의 경우 전환의 원인을 지정하기 위해 `addTransitionType`이라는 새로운 API를 추가했습니다:
4905
4905
4906
4906
```js {4,11}
4907
4907
functionnavigate(url) {
@@ -4920,7 +4920,7 @@ function navigateBack(url) {
4920
4920
}
4921
4921
```
4922
4922
4923
-
With transition types, you can provide custom animations via props to `<ViewTransition>`. Let's add a shared element transition to the header for "6 Videos" and "Back":
4923
+
transition types을 사용하면 `<ViewTransition>`에 props를 통해 커스텀 애니메이션을 제공할 수 있습니다. '6 Videos' 및 'Back'의 헤더에 공유 요소 전환을 추가해 보겠습니다:
0 commit comments