Go back to Home
/
Submit Button5626
Initializing Rive...

Usage Guide

Guide

🙋🏻‍♂️ How to Use Rive Files

Import into the Rive editor for free editing, modify as needed, and export the .riv file for use.

🎯 Basic Logic

After starting the state machine preview, achieve click-change effects; for progress control, manually adjust the bound state data values to preview progress control; when the corresponding progress value reaches 100, it automatically switches states for changes.

🎁 Notes When Exporting .riv Files

To replace fonts and reduce .riv file size, note the following settings:

Find the corresponding font, then select "Glyphs used" in export settings—this exports only used characters, significantly reducing .riv file size.

🥳 Key Points for Using Rive Files

✍🏼 Rive Initialization Settings

stateMachines: "main" autoBind: true (Other settings can be left unset or use defaults)

💥 Binding Data Fields

  • isHovered Boolean type: Set to true when the mouse hovers over the button, false otherwise.
  • isClicked Boolean type: Set to true after the button is clicked, false before clicking.
  • progressNum Number type: Controls progress change values, range set to 0-100; when the value reaches 100, the button automatically changes to the next state.

🚀 Advanced Tips and Official Resources

  • Provide this case's state machine and field descriptions to AI to generate corresponding runtime initialization and interaction code templates, then adjust based on project structure.
  • If binding fails, first verify that stateMachines name, field naming, and types match.
  • Official runtime documentation: https://rive.app/docs/runtimes/

Unlock Full Usage Guide

This document contains detailed code implementation, Rive state machine configuration, and component interaction logic.

Progress ControlMorphing

Submit Button5626

$3usd

One-time purchase · Lifetime access

Unlock all project resources:
.riv Runtime File
.rev Project File
Usage Guide

Runtime Support

WebiOSmacOSAndroidFlutterReact NativeFramerWebflowWixDefoldUnityUnrealC++

Specifications

.riv Runtime Resource
586.7 KB
Capabilities
Detects if the mouse is hovering over the button
Detect if a button is clicked
Control progress bar progress
.rev Editable Source
893.3 KB
Features used in this file
Data Binding
Listeners

You May Also Like

UI COMPONENTS
ID 1024
Download Button
#Progress Control#Deformation Effect
Live Preview
UI COMPONENTS
ID 7803
Download Button
#Progress Control#Deformation Effect
Live Preview
UI COMPONENTS
ID 2346
Download Button
#Progress Control#Morphing
Live Preview