Transitions

Transition component for Universal Dashboard.

Transitions allow you to transition components in and out of view within your dashboard using various animations. You can take advantage of interactive cmdlets like Set-UDElement to change the transition state and cause an element to move in.

In the following example, we have a card that transitions in via a Fade. Clicking the switch the toggle the card in and out.

New-UDTransition -Id 'test' -Content {
    New-UDCard -Text "Hey"
} -In -Fade -Timeout 1000

New-UDSwitch -OnChange {
    Set-UDElement -Id 'test' -Properties @{
        in = $EventData -eq 'True'
    }
} -Checked $true

The resulting effect looks like this.

Transition a card

Collapse

The collapse transition will collapse a section in and out. You can specify a collapse height to only collapse a portion of the section.

Collapse Transition

Fade

A fade transition fades a component in and out as seen in the previous example. You can configure the timeout value to specify the number of seconds it takes to complete the transition.

Slide

The slide transition moves a component into position. You can determine the position of the slide by specifying the -SlideDirection parameter.

Slide Transition

Grow

The grow transition will fade and grow a component into place.

Grow Transition

Zoom

The zoom transition will zoom a component into place.

Zoom Transition

Last updated

Was this helpful?