> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/new-udtransition.md).

# New-UDTransition

### Sinopsis

Crea un efecto de transición.

### Sintaxis

```powershell
New-UDTransition [-Id <String>] [-Collapse] [-CollapseHeight <Int32>] -Children <ScriptBlock> [-In] [-Timeout <Int32>] [-Style <Hashtable>] [-MountOnEnter] [-UnmountOnExit] [<CommonParameters>]

    New-UDTransition [-Id <String>] [-Fade] -Children <ScriptBlock> [-In] [-Timeout <Int32>] [-Style <Hashtable>] [-MountOnEnter] [-UnmountOnExit] [<CommonParameters>]

    New-UDTransition [-Id <String>] [-Grow] -Children <ScriptBlock> [-In] [-Timeout <Int32>] [-Style <Hashtable>] [-MountOnEnter] [-UnmountOnExit] [<CommonParameters>]

    New-UDTransition [-Id <String>] [-Slide] [-SlideDirection <String>] -Children <ScriptBlock> [-In] [-Timeout <Int32>] [-Style <Hashtable>] [-MountOnEnter] [-UnmountOnExit] [<CommonParameters>]

    New-UDTransition [-Id <String>] [-Zoom] -Children <ScriptBlock> [-In] [-Timeout <Int32>] [-Style <Hashtable>] [-MountOnEnter] [-UnmountOnExit] [<CommonParameters>]
```

### Descripción

Crea un efecto de transición.

### Parámetros

#### -Id

El ID de este componente.

```
Required?                    false
Position?                    named
Default value                [Guid]::NewGuid().ToString()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -Collapse [<SwitchParameter>]
        Creates a collapse transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -CollapseHeight

La altura del contenido cuando está contraído.

```
Required?                    false
Position?                    named
Default value                0
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -Fade [<SwitchParameter>]
        Creates a fade transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -Grow [<SwitchParameter>]
        Creates a grow transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -Slide [<SwitchParameter>]
        Creates a slide transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -SlideDirection

La dirección de la transición de deslizamiento.

```
Required?                    false
Position?                    named
Default value                Down
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -Zoom [<SwitchParameter>]
        Creates a zoom transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Children

El contenido o los elementos secundarios que se van a transicionar.

```
Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -In [<SwitchParameter>]
        Whether the content is transitioned in. You can use Set-UDElement to trigger a transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Timeout

El número de milisegundos que tarda la transición.

```
Required?                    false
Position?                    named
Default value                0
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Style

Una tabla hash de estilos CSS que se aplicarán a la transición.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -MountOnEnter [<SwitchParameter>]
        Whether to mount the content when entering the transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -UnmountOnExit [<SwitchParameter>]
        Whether to unmount the content when exiting the transition.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
```

### Salidas

\-------------------------- EJEMPLO 1 --------------------------

```
PS >New-UDTransition -Fade -In -Children {
PS >    New-UDButton -Text 'Click Me'  -Id 'button1'
PS > } -Id 'transition1' -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition1' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Fade|A fade transition.




-------------------------- EXAMPLE 2 --------------------------

PS >New-UDTransition -Slide -In -Children {
PS >    New-UDButton -Text 'Click Me' -Id 'button2'
PS > } -Id 'transition2'  -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition2' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Slide|A slide transition.




-------------------------- EXAMPLE 3 --------------------------

PS >New-UDTransition -Zoom -In -Children {
PS >    New-UDButton -Text 'Click Me' -Id 'button3'
PS > } -Id 'transition3'  -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition3' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Zoom|A zoom transition.




-------------------------- EXAMPLE 4 --------------------------

PS >New-UDTransition -Grow -In -Children {
PS >    New-UDButton -Text 'Click Me' -Id 'button4'
PS > } -Id 'transition4'  -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition4' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Grow|A grow transition.




-------------------------- EXAMPLE 5 --------------------------

PS >New-UDTransition -Collapse -In -Children {
PS >    New-UDButton -Text 'Click Me' -Id 'button5'
PS > } -Id 'transition5'  -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition5' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Collapse|A collapse transition.




-------------------------- EXAMPLE 6 --------------------------

PS >New-UDTransition -Collapse -In -Children {
PS >    New-UDButton -Text 'Click Me' -Id 'button6'
PS > } -Id 'transition6' -CollapseHeight 100  -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition6' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Collapse Height|A collapse transition with 100 height.




-------------------------- EXAMPLE 7 --------------------------

PS >New-UDTransition -Slide -In -Children {
PS >    New-UDButton -Text 'Click Me' -Id 'button7'
PS > } -Id 'transition7' -SlideDirection 'Left'  -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition7' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Slide Direction|A slide transition with left direction.




-------------------------- EXAMPLE 8 --------------------------

PS >New-UDTransition -Fade -In -Children {
PS >    New-UDButton -Text 'Click Me' -Id 'button8'
PS > } -Id 'transition8' -Timeout 1000
PS > New-UDCheckbox -Label 'Toggle' -OnChange {
PS >    Set-UDElement -Id 'transition8' -Properties @{
PS >        In = $EventData
PS >    }
PS > } -Checked $true

Timeout|A fade transition with 1000 timeout.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/new-udtransition.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
