> 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/de/powershell-befehle/new-udtransition.md).

# New-UDTransition

### Übersicht

Erstellt einen Übergangseffekt.

### Syntax

```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>]
```

### Beschreibung

Erstellt einen Übergangseffekt.

### Parameter

#### -Id

Die ID dieser Komponente.

```
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

Die Höhe des Inhalts im eingeklappten Zustand.

```
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

Die Richtung des Slide-Übergangs.

```
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

Der Inhalt oder die untergeordneten Elemente, die übergehen sollen.

```
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

Die Anzahl der Millisekunden, die der Übergang benötigt.

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

#### -Style

Eine Hashtable von CSS-Stilen, die auf den Übergang angewendet werden.

```
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).
```

### Ausgaben

\-------------------------- BEISPIEL 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/de/powershell-befehle/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.
