ftd.rive
- Rive Animations-- import: fastn.com/assets -- ftd.rive: id: panda background.solid: #aaa src: $assets.files.rive.panda.riv width.fixed.px: 400
ftd.rive
accepts all the common attributes, and the ones listed below.id
Type: Required string
id
used to identify this rive object. This id
is used in communication with the Rive state machine.src
Type: Required string
fastn
package and use the auto generated assets
module to refer to them.state-machine
Type: string list
autoplay
Type: boolean
default: true
true
, the animation will automatically start playing when loaded.artboard
Type: optional string
fastn
language has various rive related built-in functions. These functions help to interact with rive on various events.-- ftd.rive: id: fastn src: $fastn-assets.files.assets.fastn.riv width.fixed.px: 440 state-machine: Together $on-mouse-enter$: $ftd.set-rive-boolean(rive = fastn, input = play, value = true) $on-mouse-leave$: $ftd.set-rive-boolean(rive = fastn, input = play, value = false)
fastn
language has various rive related events. These events can be attached to rive component. They fire the callback when any event occurs in rive component.Have a question or need help?
Visit our GitHub Q&A discussion to get answers and subscribe to it to stay tuned.
Join our Discord channel and share your thoughts, suggestion, question etc.
Connect with our community!We welcome you to join our Discord community today.
We are trying to create the language for human beings and we do not believe it would be possible without your support. We would love to hear from you.