Skip to content

Commit bab8637

Browse files
committed
docs: translate up to "Final result" section
1 parent 8a9c498 commit bab8637

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

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

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4895,6 +4895,7 @@ root.render(
48954895

48964896
</Sandpack>
48974897

4898+
기본적으로 React는 Transition에 활성화된 각 요소에 대해 고유한 `name`을 자동으로 생성합니다. ([`<ViewTransition>`이 어떻게 동작하는지 참고하세요.](/reference/react/ViewTransition#how-does-viewtransition-work)) React가 어떤 Transition에서 특정 `name`을 가진 `<ViewTransition>`이 제거되고, 동일한 `name`을 가진 새로운 `<ViewTransition>`이 추가된 것을 감지하면 공유 엘리먼트 전환<sup>Shared Element Transition</sup>을 활성화합니다.
48984899

48994900
자세한 내용은 [Animating a Shared Element](/reference/react/ViewTransition#animating-a-shared-element) 문서를 참고하세요.
49004901

@@ -4932,7 +4933,7 @@ Transition types을 사용하면 `<ViewTransition>`에 props를 통해 커스텀
49324933
</ViewTransition>
49334934
```
49344935

4935-
Here we pass a `share` prop to define how to animate based on the transition type. When the share transition activates from `nav-forward`, the view transition class `slide-forward` is applied. When it's from `nav-back`, the `slide-back` animation is activated. Let's define these animations in CSS:
4936+
여기에서는 `share` prop을 전달하여 transition type에 따라 어떻게 애니메이션을 적용할지 정의합니다. `nav-forward`로 인해 공통의 transition이 활성화되면, view transition 클래스인 `slide-forward`가 적용됩니다. `nav-back`로 인해 활성화되면, `slide-back` 애니메이션이 활성화됩니다. CSS에서 이러한 애니메이션을 정의해 보겠습니다.
49364937

49374938
```css
49384939
::view-transition-old(.slide-forward) {
@@ -4956,7 +4957,7 @@ Here we pass a `share` prop to define how to animate based on the transition typ
49564957
}
49574958
```
49584959

4959-
Now we can animate the header along with thumbnail based on navigation type:
4960+
이제 navigation type에 따라 썸네일과 헤더에 애니메이션을 적용할 수 있습니다:
49604961

49614962
<Sandpack>
49624963

@@ -6210,11 +6211,11 @@ root.render(
62106211

62116212
</Sandpack>
62126213

6213-
### Animating Suspense Boundaries {/*animating-suspense-boundaries*/}
6214+
### Suspense Boundaries 애니메이팅 {/*animating-suspense-boundaries*/}
62146215

6215-
Suspense will also activate View Transitions.
6216+
Suspense 역시 View Transitions을 활성화합니다.
62166217

6217-
To animate the fallback to content, we can wrap `Suspense` with `<ViewTranstion>`:
6218+
콘텐츠에 대한 폴백 애니메이션을 적용하려면 `Suspense``<ViewTranstion>`으로 래핑하면 됩니다:
62186219

62196220
```js
62206221
<ViewTransition>
@@ -6224,7 +6225,7 @@ To animate the fallback to content, we can wrap `Suspense` with `<ViewTranstion>
62246225
</ViewTransition>
62256226
```
62266227

6227-
By adding this, the fallback will cross-fade into the content. Click a video and see the video info animate in:
6228+
이를 추가하면 폴백이 콘텐츠에 크로스 페이드됩니다. 동영상을 클릭하면 동영상 정보에 애니메이션이 적용됩니다:
62286229

62296230
<Sandpack>
62306231

@@ -7508,7 +7509,7 @@ root.render(
75087509

75097510
</Sandpack>
75107511

7511-
We can also provide custom animations using an `exit` on the fallback, and `enter` on the content:
7512+
또한 폴백에 `exit`, 내부 콘텐츠에 `enter`를 사용하여 커스텀 애니메이션을 제공할 수도 있습니다.
75127513

75137514
```js {3,8}
75147515
<Suspense
@@ -7524,7 +7525,7 @@ We can also provide custom animations using an `exit` on the fallback, and `ente
75247525
</Suspense>
75257526
```
75267527

7527-
Here's how we'll define `slide-down` and `slide-up` with CSS:
7528+
CSS로 `slide-down``slide-up`을 정의하는 방법은 다음과 같습니다.
75287529

75297530
```css {1, 6}
75307531
::view-transition-old(.slide-down) {
@@ -7538,7 +7539,7 @@ Here's how we'll define `slide-down` and `slide-up` with CSS:
75387539
}
75397540
```
75407541

7541-
Now, the Suspense content replaces the fallback with a sliding animation:
7542+
이제 Suspense 콘텐츠가 슬라이드 애니메이션으로 폴백을 대체합니다.
75427543

75437544
<Sandpack>
75447545

@@ -8830,9 +8831,9 @@ root.render(
88308831
</Sandpack>
88318832

88328833

8833-
### Animating Lists {/*animating-lists*/}
8834+
### 목록 애니메이팅 {/*animating-lists*/}
88348835

8835-
You can also use `<ViewTransition>` to animate lists of items as they re-order, like in a searchable list of items:
8836+
검색 가능 항목 목록에서처럼 `<ViewTransition>`을 사용하여 항목 목록이 재정렬될 때 애니메이션을 적용할 수도 있습니다.
88368837

88378838
```js {3,5}
88388839
<div className="videos">
@@ -8844,15 +8845,15 @@ You can also use `<ViewTransition>` to animate lists of items as they re-order,
88448845
</div>
88458846
```
88468847

8847-
To activate the ViewTransition, we can use `useDeferredValue`:
8848+
ViewTransition을 활성화하려면 `useDeferredValue`를 사용할 수 있습니다.
88488849

88498850
```js {2}
88508851
const [searchText, setSearchText] = useState('');
88518852
const deferredSearchText = useDeferredValue(searchText);
88528853
const filteredVideos = filterVideos(videos, deferredSearchText);
88538854
```
88548855

8855-
Now the items animate as you type in the search bar:
8856+
이제 검색창에 입력할 때 항목에 애니메이션이 적용됩니다.
88568857

88578858
<Sandpack>
88588859

@@ -10170,13 +10171,13 @@ root.render(
1017010171

1017110172
</Sandpack>
1017210173

10173-
### Final result {/*final-result*/}
10174+
### 최종 결과물 {/*final-result*/}
1017410175

10175-
By adding a few `<ViewTransition>` components and a few lines of CSS, we were able to add all the animations above into the final result.
10176+
몇 개의 `<ViewTransition>` 컴포넌트와 몇 줄의 CSS를 추가하여 위의 모든 애니메이션을 최종 결과물에 추가할 수 있었습니다.
1017610177

10177-
We're excited about View Transitions and think they will level up the apps you're able to build. They're ready to start trying today in the experimental channel of React releases.
10178+
저희는 View Transition이 여러분의 앱 제작 수준을 한 단계 높여줄 것으로 기대하고 있습니다. 오늘부터 React 릴리즈의 experimental 채널에서 사용해 볼 수 있습니다.
1017810179

10179-
Let's remove the slow fade, and take a look at the final result:
10180+
이제 느린 페이드 효과를 제거하고, 최종 결과물을 살펴봅시다.
1018010181

1018110182
<Sandpack>
1018210183

@@ -11456,9 +11457,10 @@ root.render(
1145611457

1145711458
</Sandpack>
1145811459

11459-
If you're curious to know more about how they work, check out [How Does `<ViewTransition>` Work](/reference/react/ViewTransition#how-does-viewtransition-work) in the docs.
11460+
작동 방식에 대해 자세히 알고 싶다면 문서에서 [`<ViewTransition>`의 작동 방식](/reference/react/ViewTransition#how-does-viewtransition-work)을 확인하세요.
1146011461

11461-
_For more background on how we built View Transitions, see: [#31975](https://github.com/facebook/react/pull/31975), [#32105](https://github.com/facebook/react/pull/32105), [#32041](https://github.com/facebook/react/pull/32041), [#32734](https://github.com/facebook/react/pull/32734), [#32797](https://github.com/facebook/react/pull/32797) [#31999](https://github.com/facebook/react/pull/31999), [#32031](https://github.com/facebook/react/pull/32031), [#32050](https://github.com/facebook/react/pull/32050), [#32820](https://github.com/facebook/react/pull/32820), [#32029](https://github.com/facebook/react/pull/32029), [#32028](https://github.com/facebook/react/pull/32028), and [#32038](https://github.com/facebook/react/pull/32038) by [@sebmarkbage](https://twitter.com/sebmarkbage) (thanks Seb!)._
11462+
11463+
_View Transition을 구축한 배경에 대한 자세한 내용은 다음을 참조하세요. [#31975](https://github.com/facebook/react/pull/31975), [#32105](https://github.com/facebook/react/pull/32105), [#32041](https://github.com/facebook/react/pull/32041), [#32734](https://github.com/facebook/react/pull/32734), [#32797](https://github.com/facebook/react/pull/32797) [#31999](https://github.com/facebook/react/pull/31999), [#32031](https://github.com/facebook/react/pull/32031), [#32050](https://github.com/facebook/react/pull/32050), [#32820](https://github.com/facebook/react/pull/32820), [#32029](https://github.com/facebook/react/pull/32029), [#32028](https://github.com/facebook/react/pull/32028), and [#32038](https://github.com/facebook/react/pull/32038) by [@sebmarkbage](https://twitter.com/sebmarkbage) (Seb 감사합니다!)_
1146211464

1146311465
---
1146411466

0 commit comments

Comments
 (0)