Skip to content

Commit 38ffd0b

Browse files
docs: translate addTransitionType.md to Português (Brasil) (#1236)
Co-authored-by: translate-react-bot[bot] <251169733+translate-react-bot[bot]@users.noreply.github.com>
1 parent e114cb3 commit 38ffd0b

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

src/content/reference/react/addTransitionType.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ version: canary
55

66
<Canary>
77

8-
**The `addTransitionType` API is currently only available in React’s Canary and Experimental channels.**
8+
**A API `addTransitionType` está atualmente disponível apenas nos canais Canary e Experimental do React.**
99

10-
[Learn more about React’s release channels here.](/community/versioning-policy#all-release-channels)
10+
[Saiba mais sobre os canais de lançamento do React aqui.](/community/versioning-policy#all-release-channels)
1111

1212
</Canary>
1313

1414
<Intro>
1515

16-
`addTransitionType` lets you specify the cause of a transition.
16+
`addTransitionType` permite que você especifique a causa de uma transição.
1717

1818

1919
```js
@@ -29,32 +29,32 @@ startTransition(() => {
2929

3030
---
3131

32-
## Reference {/*reference*/}
32+
## Referência {/*reference*/}
3333

3434
### `addTransitionType` {/*addtransitiontype*/}
3535

36-
#### Parameters {/*parameters*/}
36+
#### Parâmetros {/*parameters*/}
3737

38-
- `type`: The type of transition to add. This can be any string.
38+
- `type`: O tipo de transição a ser adicionado. Pode ser qualquer string.
3939

40-
#### Returns {/*returns*/}
40+
#### Retorna {/*returns*/}
4141

42-
`addTransitionType` does not return anything.
42+
`addTransitionType` não retorna nada.
4343

44-
#### Caveats {/*caveats*/}
44+
#### Ressalvas {/*caveats*/}
4545

46-
- If multiple transitions are combined, all Transition Types are collected. You can also add more than one type to a Transition.
47-
- 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.
46+
- Se múltiplas transições forem combinadas, todos os Tipos de Transição são coletados. Você também pode adicionar mais de um tipo a uma Transição.
47+
- Os Tipos de Transição são redefinidos após cada commit. Isso significa que um fallback de `<Suspense>` associará os tipos após um `startTransition`, mas a revelação do conteúdo não.
4848

4949
---
5050

51-
## Usage {/*usage*/}
51+
## Uso {/*usage*/}
5252

53-
### Adding the cause of a transition {/*adding-the-cause-of-a-transition*/}
53+
### Adicionando a causa de uma transição {/*adding-the-cause-of-a-transition*/}
5454

55-
Call `addTransitionType` inside of `startTransition` to indicate the cause of a transition:
55+
Chame `addTransitionType` dentro de `startTransition` para indicar a causa de uma transição:
5656

57-
``` [[1, 6, "addTransitionType"], [2, 5, "startTransition", [3, 6, "'submit-click'"]]
57+
```js [[1, 6, "addTransitionType"], [2, 5, "startTransition", [3, 6, "'submit-click'"]]]
5858
import { startTransition, addTransitionType } from 'react';
5959

6060
function Submit({action) {
@@ -70,22 +70,22 @@ function Submit({action) {
7070

7171
```
7272
73-
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.
73+
Quando você chama <CodeStep step={1}>addTransitionType</CodeStep> dentro do escopo de <CodeStep step={2}>startTransition</CodeStep>, o React associará <CodeStep step={3}>submit-click</CodeStep> como uma das causas para a Transição.
7474
75-
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:
75+
Atualmente, os Tipos de Transição podem ser usados para personalizar diferentes animações com base no que causou a Transição. Você tem três maneiras diferentes de escolher como usá-los:
7676
77-
- [Customize animations using browser view transition types](#customize-animations-using-browser-view-transition-types)
78-
- [Customize animations using `View Transition` Class](#customize-animations-using-view-transition-class)
79-
- [Customize animations using `ViewTransition` events](#customize-animations-using-viewtransition-events)
77+
- [Personalizar animações usando tipos de transição de visualização do navegador](#customize-animations-using-browser-view-transition-types)
78+
- [Personalizar animações usando a Classe `View Transition`](#customize-animations-using-view-transition-class)
79+
- [Personalizar animações usando eventos `ViewTransition`](#customize-animations-using-viewtransition-events)
8080
81-
In the future, we plan to support more use cases for using the cause of a transition.
81+
No futuro, planejamos dar suporte a mais casos de uso para a causa de uma transição.
8282
8383
---
84-
### Customize animations using browser view transition types {/*customize-animations-using-browser-view-transition-types*/}
84+
### Personalizar animações usando tipos de transição de visualização do navegador {/*customize-animations-using-browser-view-transition-types*/}
8585
86-
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.
86+
Quando uma [`ViewTransition`](/reference/react/ViewTransition) é ativada a partir de uma transição, o React adiciona todos os Tipos de Transição como [tipos de transição de visualização](https://www.w3.org/TR/css-view-transitions-2/#active-view-transition-pseudo-examples) do navegador ao elemento.
8787
88-
This allows you to customize different animations based on CSS scopes:
88+
Isso permite que você personalize diferentes animações com base em escopos CSS:
8989
9090
```js [11]
9191
function Component() {
@@ -112,9 +112,9 @@ startTransition(() => {
112112
113113
---
114114
115-
### Customize animations using `View Transition` Class {/*customize-animations-using-view-transition-class*/}
115+
### Personalizar animações usando a Classe `View Transition` {/*customize-animations-using-view-transition-class*/}
116116
117-
You can customize animations for an activated `ViewTransition` based on type by passing an object to the View Transition Class:
117+
Você pode personalizar animações para uma `ViewTransition` ativada com base no tipo, passando um objeto para a Classe View Transition:
118118
119119
```js
120120
function Component() {
@@ -134,9 +134,9 @@ startTransition(() => {
134134
});
135135
```
136136
137-
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).
137+
Se múltiplos tipos corresponderem, eles serão unidos. Se nenhum tipo corresponder, a entrada especial "default" será usada em vez disso. Se algum tipo tiver o valor "none", ele prevalecerá e a ViewTransition será desabilitada (não terá um nome atribuído).
138138
139-
These can be combined with enter/exit/update/layout/share props to match based on kind of trigger and Transition Type.
139+
Estes podem ser combinados com as props enter/exit/update/layout/share para corresponder com base no tipo de gatilho e Tipo de Transição.
140140
141141
```js
142142
<ViewTransition enter={{
@@ -151,9 +151,9 @@ exit={{
151151
152152
---
153153
154-
### Customize animations using `ViewTransition` events {/*customize-animations-using-viewtransition-events*/}
154+
### Personalizar animações usando eventos `ViewTransition` {/*customize-animations-using-viewtransition-events*/}
155155
156-
You can imperatively customize animations for an activated `ViewTransition` based on type using View Transition events:
156+
Você pode personalizar imperativamente animações para uma `ViewTransition` ativada com base no tipo usando eventos View Transition:
157157
158158
```
159159
<ViewTransition onUpdate={(inst, types) => {
@@ -167,4 +167,4 @@ You can imperatively customize animations for an activated `ViewTransition` base
167167
}}>
168168
```
169169
170-
This allows you to pick different imperative Animations based on the cause.
170+
Isso permite que você escolha diferentes Animações imperativas com base na causa.

0 commit comments

Comments
 (0)