Skip to content

Commit a92637e

Browse files
docs: translate addTransitionType
1 parent 17590fd commit a92637e

1 file changed

Lines changed: 35 additions & 37 deletions

File tree

src/content/reference/react/addTransitionType.md

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ version: experimental
55

66
<Experimental>
77

8-
**This API is experimental and is not available in a stable version of React yet.**
8+
**이 API는 실험적이며 React 안정 버전에서는 아직 사용할 수 없습니다.**
99

10-
You can try it by upgrading React packages to the most recent experimental version:
10+
이 API를 사용하려면 React 패키지를 가장 최신의 실험적인 버전으로 업그레이드해야 합니다.
1111

1212
- `react@experimental`
1313
- `react-dom@experimental`
1414
- `eslint-plugin-react-hooks@experimental`
1515

16-
Experimental versions of React may contain bugs. Don't use them in production.
16+
실험적인 버전의 React에는 버그가 있을 수 있습니다. 프로덕션에서는 사용하지 마세요.
1717

1818
</Experimental>
1919

2020
<Intro>
2121

22-
`unstable_addTransitionType` lets you specify the cause of a transition.
23-
22+
`unstable_addTransitionType`를 사용하면 트랜지션이 발생한 원인을 상세히 나타낼 수 있습니다.
2423

2524
```js
2625
startTransition(() => {
@@ -35,32 +34,32 @@ startTransition(() => {
3534

3635
---
3736

38-
## Reference {/*reference*/}
37+
## 레퍼런스 {/*reference*/}
3938

4039
### `addTransitionType` {/*addtransitiontype*/}
4140

42-
#### Parameters {/*parameters*/}
41+
#### 매개변수 {/*parameters*/}
4342

44-
- `type`: The type of transition to add. This can be any string.
43+
- `type`: 추가할 트랜지션의 타입입니다. 어떤 문자열이든 될 수 있습니다.
4544

46-
#### Returns {/*returns*/}
45+
#### 반환값 {/*returns*/}
4746

48-
`startTransition` does not return anything.
47+
`startTransition`은 아무것도 반환하지 않습니다.
4948

50-
#### Caveats {/*caveats*/}
49+
#### 주의 사항 {/*caveats*/}
5150

52-
- If multiple transitions are combined, all Transition Types are collected. You can also add more than one type to a Transition.
53-
- Transition Types are reset after each commit. This means a `<Suspense>` fallback will associate the types after a `startTransition`, but revealing the content does not.
51+
- 여러 트랜지션이 결합되면 모든 트랜지션 타입이 수집됩니다. 하나의 트랜지션에 두 개 이상의 타입을 추가할 수도 있습니다.
52+
- 트랜지션 타입은 커밋마다 초기화됩니다. 즉, `<Suspense>`의 Fallback은 `startTransition` 이후 타입을 연결하며, 컨텐츠가 나타날 때는 그렇지 않습니다.
5453

5554
---
5655

57-
## Usage {/*usage*/}
56+
## 사용법 {/*usage*/}
5857

59-
### Adding the cause of a transition {/*adding-the-cause-of-a-transition*/}
58+
### 트랜지션의 원인 추가하기 {/*adding-the-cause-of-a-transition*/}
6059

61-
Call `addTransitionType` inside of `startTransition` to indicate the cause of a transition:
60+
`startTransition` 내부에서 `addTransitionType`을 호출해 트랜지션의 원인을 나타냅니다.
6261

63-
``` [[1, 6, "unstable_addTransitionType"], [2, 5, "startTransition", [3, 6, "'submit-click'"]]
62+
```
6463
import { startTransition, unstable_addTransitionType } from 'react';
6564
6665
function Submit({action) {
@@ -76,22 +75,21 @@ function Submit({action) {
7675
7776
```
7877

79-
When you call <CodeStep step={1}>addTransitionType</CodeStep> inside the scope of <CodeStep step={2}>startTransition</CodeStep>, React will associate <CodeStep step={3}>submit-click</CodeStep> as one of the causes for the Transition.
80-
81-
Currently, Transition Types can be used to customize different animations based on what caused the Transition. You have three different ways to choose from for how to use them:
78+
<CodeStep step={1}>addTransitionType</CodeStep>을 <CodeStep step={2}>startTransition</CodeStep>의 범위 내에서 호출하면, React는 해당 트랜지션에 <CodeStep step={3}>submit-click</CodeStep>을 원인으로 연결합니다.
8279

83-
- [Customize animations using browser view transition types](#customize-animations-using-browser-view-transition-types)
84-
- [Customize animations using `View Transition` Class](#customize-animations-using-view-transition-class)
85-
- [Customize animations using `ViewTransition` events](#customize-animations-using-viewtransition-events)
80+
현재 트랜지션 타입은 원인에 따라 서로 다른 애니메이션을 커스터마이즈하는 데 사용할 수 있습니다. 사용할 수 있는 방식은 세 가지입니다:
81+
- [브라우저 view transition 타입으로 애니메이션 커스텀하기](#customize-animations-using-browser-view-transition-types)
82+
- [`View Transition` 클래스로 애니메이션 커스텀하기](#customize-animations-using-view-transition-class)
83+
- [`ViewTransition`이벤트로 애니메이션 커스텀하기](#customize-animations-using-viewtransition-events)
8684

87-
In the future, we plan to support more use cases for using the cause of a transition.
85+
향후에는 트랜지션의 원인을 활용할 수 있는 다양한 용례를 지원할 예정입니다.
8886

8987
---
90-
### Customize animations using browser view transition types {/*customize-animations-using-browser-view-transition-types*/}
88+
### 브라우저 view transition 타입으로 애니메이션 커스텀하기 {/*customize-animations-using-browser-view-transition-types*/}
9189

92-
When a [`ViewTransition`](/reference/react/ViewTransition) activates from a transition, React adds all the Transition Types as browser [view transition types](https://www.w3.org/TR/css-view-transitions-2/#active-view-transition-pseudo-examples) to the element.
90+
트랜지션에서 [`ViewTransition`](/reference/react/ViewTransition)이 활성화되면, React는 모든 트랜지션 타입을 브라우저의 [view transition types](https://www.w3.org/TR/css-view-transitions-2/#active-view-transition-pseudo-examples)으로 해당 요소에 추가합니다.
9391

94-
This allows you to customize different animations based on CSS scopes:
92+
이렇게 하면 CSS 범위에서 다른 애니메이션을 커스텀할 수 있습니다.
9593

9694
```js [11]
9795
function Component() {
@@ -118,9 +116,10 @@ startTransition(() => {
118116

119117
---
120118

121-
### Customize animations using `View Transition` Class {/*customize-animations-using-view-transition-class*/}
119+
### `View Transition` 클래스로 애니메이션 커스텀하기 {/*customize-animations-using-view-transition-class*/}
120+
121+
활성화된 ViewTransition에서 타입에 따라 애니메이션을 커스터마이즈하려면, View Transition 클래스에 객체를 전달하면 됩니다.
122122

123-
You can customize animations for an activated `ViewTransition` based on type by passing an object to the View Transition Class:
124123

125124
```js
126125
function Component() {
@@ -140,9 +139,9 @@ startTransition(() => {
140139
});
141140
```
142141

143-
If multiple types match, then they're joined together. If no types match then the special "default" entry is used instead. If any type has the value "none" then that wins and the ViewTransition is disabled (not assigned a name).
142+
여러 타입이 매칭되면 값들이 결합되고, 매칭되는 타입이 없으면 "default" 엔트리가 사용됩니다. 만약 값이 "none"이면 ViewTransition이 비활성화되어 이름이 할당되지 않습니다.
144143

145-
These can be combined with enter/exit/update/layout/share props to match based on kind of trigger and Transition Type.
144+
이 방식은 enter/exit/update/layout/share props와 결합하여 트리거 종류와 트랜지션 타입에 따라 동작을 맞출 수 있습니다.
146145

147146
```js
148147
<ViewTransition enter={{
@@ -157,9 +156,9 @@ exit={{
157156

158157
---
159158

160-
### Customize animations using `ViewTransition` events {/*customize-animations-using-viewtransition-events*/}
159+
### `ViewTransition`이벤트로 애니메이션 커스텀하기 {/*customize-animations-using-viewtransition-events*/}
161160

162-
You can imperatively customize animations for an activated `ViewTransition` based on type using View Transition events:
161+
View Transition 이벤트를 활용하여 타입에 따라 활성화된 `ViewTransition`의 애니메이션을 즉시 커스터마이즈할 수 있습니다.
163162

164163
```
165164
<ViewTransition onUpdate={(inst, types) => {
@@ -172,11 +171,10 @@ You can imperatively customize animations for an activated `ViewTransition` base
172171
}
173172
}}>
174173
```
175-
176-
This allows you to pick different imperative Animations based on the cause.
174+
이렇게 하면 원인에 따라 서로 다른 애니메이션을 선택할 수 있습니다.
177175

178176
---
179177

180-
## Troubleshooting {/*troubleshooting*/}
178+
## 문제 해결 {/*troubleshooting*/}
181179

182-
### TODO {/*todo2*/}
180+
### 해야할 일 {/*todo2*/}

0 commit comments

Comments
 (0)