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

Frame Animation

Frame Animation is a native Zui component in the animation, state, and timing catalog, with 3 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
frames = frame_animation running: true
on frames, :frame do |event|
  puts "Elapsed: #{event.fetch("elapsed")}"
end
API

Component properties

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

runningRunning configuration for Frame Animation.property
pausedPaused configuration for Frame Animation.property
visibleVisible configuration for Frame 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.

frameNative event payload
startNative event payload
stopNative event payload