zui docs v0.0.5
GitHub ↗
Animation, state, and timing Native Qt

Parent Animation

Parent Animation is a native Zui component in the animation, state, and timing catalog, with 8 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
pane id: :left, width: 220, height: 180
pane id: :right, width: 220, height: 180
tile = rectangle width: 60, height: 60, color: "#b7ff5a"
parent_animation tile, new_parent: :right, via: :left, duration: 360, running: true
API

Component properties

8 component-specific values, plus shared item and layout properties.

targetTarget configuration for Parent Animation.property
new_parentNew parent configuration for Parent Animation.property
viaVia configuration for Parent Animation.property
durationDuration configuration for Parent Animation.property
easingEasing configuration for Parent Animation.property
runningRunning configuration for Parent Animation.property
pausedPaused configuration for Parent Animation.property
visibleVisible configuration for Parent Animation.property
Show 16 shared item properties
enabledopacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

startNative event payload
stopNative event payload
finishNative event payload
running_changeNative event payload