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

Animation Controller

Animation Controller is a native Zui component in the animation, state, and timing catalog, with 10 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
tile = rectangle width: 80, height: 80, color: "#b7ff5a"
animation_controller tile, property: :x, from: 0, to: 280, duration: 900, progress: 0.45
API

Component properties

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

animationAnimation configuration for Animation Controller.property
targetTarget configuration for Animation Controller.property
propertyProperty configuration for Animation Controller.property
fromFrom configuration for Animation Controller.property
toTo configuration for Animation Controller.property
durationDuration configuration for Animation Controller.property
progressProgress configuration for Animation Controller.property
reloadReload configuration for Animation Controller.property
revisionRevision configuration for Animation Controller.property
visibleVisible configuration for Animation Controller.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.

progress_changeNative event payload
finishNative event payload