For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDTransition

Synopsis

Creates a transition effect.

Syntax

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

Description

Creates a transition effect.

Parameters

-Id

The ID of this component.

-Collapse

Creates a collapse transition.

-CollapseHeight

The height of the content when collapsed.

-Fade

Creates a fade transition.

-Grow

Creates a grow transition.

-Slide

Creates a slide transition.

-SlideDirection

The direction of the slide transition.

-Zoom

Creates a zoom transition.

-Children

The content or children to transition.

-In

Whether the content is transitioned in. You can use Set-UDElement to trigger a transition.

-Timeout

The number of milliseconds it takes to transition.

-Style

A hashtable of CSS styles to apply to the transition.

-MountOnEnter

Whether to mount the content when entering the transition.

-UnmountOnExit

Whether to unmount the content when exiting the transition.

Common parameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Outputs

Examples

Example 1: Fade

A fade transition.

Example 2: Slide

A slide transition.

Example 3: Zoom

A zoom transition.

Example 4: Grow

A grow transition.

Example 5: Collapse

A collapse transition.

Example 6: Collapse Height

A collapse transition with 100 height.

Example 7: Slide Direction

A slide transition with left direction.

Example 8: Timeout

A fade transition with 1000 timeout.

Last updated

Was this helpful?