Skip to content

Commit efa337d

Browse files
committed
docs: translate Animating navigations
1 parent f825ecd commit efa337d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,17 +2458,17 @@ root.render(
24582458

24592459
</Sandpack>
24602460

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>`를 한 줄 추가함으로써 기본 크로스 페이드 애니메이션이 활성화됩니다.
24622462

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)를 읽어보세요.
24642464

24652465
<Note>
24662466

2467-
#### Opting out of `<ViewTransition>` animations {/*opting-out-of-viewtransition-animations*/}
2467+
#### `<ViewTransition>` 애니메이션 선택 해제하기 {/*opting-out-of-viewtransition-animations*/}
24682468

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>`으로 래핑하고 있지만, 이렇게 하면 앱의 모든 전환에 애니메이션이 적용되므로 예기치 않은 애니메이션이 발생할 수 있습니다.
24702470

2471-
To fix, we're wrapping route children with `"none"` so each page can control its own animation:
2471+
이 문제를 해결하기 위해 라우트 자식을 `"none"`으로 래핑하여 각 페이지가 자신의 애니메이션을 제어할 수 있도록 합니다:
24722472

24732473
```js
24742474
// Layout.js
@@ -2477,7 +2477,7 @@ To fix, we're wrapping route children with `"none"` so each page can control its
24772477
</ViewTransition>
24782478
```
24792479

2480-
In practice, navigations should be done via "enter" and "exit" props, or by using Transition Types.
2480+
실제로는, `"enter"``"exit"` props나 Transition Types을 사용하여 내비게이션을 구현해야 합니다.
24812481

24822482
</Note>
24832483

@@ -4901,7 +4901,7 @@ root.render(
49014901

49024902
### Animating based on cause {/*animating-based-on-cause*/}
49034903

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를 추가했습니다:
49054905

49064906
```js {4,11}
49074907
function navigate(url) {
@@ -4920,7 +4920,7 @@ function navigateBack(url) {
49204920
}
49214921
```
49224922

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'의 헤더에 공유 요소 전환을 추가해 보겠습니다:
49244924

49254925
```js {4,5}
49264926
<ViewTransition

0 commit comments

Comments
 (0)