@lynx-example/animax
v0.2.0
Published
Examples showing how to use `<animax-view>` in Lynx
Readme
@lynx-example/animax
Examples showing how to use <animax-view> in Lynx.
pnpm --filter @lynx-example/animax run devExamples
basic: load a remote animation with autoplay.basic-json: render animation data through thejsonprop.basic-loop: compareloopandloop-count.controls: build player controls with play, pause, resume, stop, progress, and frame-by-frame seek.events: handleready,firstframe,start,repeat,update,fps,error, andcompletion.events-update: subscribe to update frames and handlebindupdate.playsegment: callplaySegmentwith integer frame bounds.methods-query: callgetDuration,getCurrentFrame, andisAnimating.playback-props: configurespeed,start-frame,end-frame,auto-reverse, andprogress.firstframe-poster: hide a poster afterbindfirstframe.dynamic-resource-font: update a font resource by font name.dynamic-resource-video: update an alpha video resource by video id.dynamic-resource-submit: stage a resource update and submit it.dynamic-text-layer: update text value, size, color, and frame-scoped text.dynamic-layer-property: update layer visibility and transform properties.events-tap: handle layer tap callbacks withbindtaplayers.
