Skip to main content

Logic

An animation state machine your code can control.

Updated November 2026

An animation state machine decides which animation plays and when. In ExodeUI you draw states such as idle, hover and pressed, connect them with transitions, and add conditions like isHovered == true. Your app only sets inputs; the file decides how each change looks.

Free Community plan · Browser, macOS and Windows

Inputs
Trigger, boolean, number, text
Transitions
Duration, exit time, conditions
Layers
Run in parallel
Logic nodes
AND, OR, NOT, math

How it works, step by step

  1. 1Add inputs

    Open the logic panel and click + to add a trigger (one-off events), boolean (on or off), number (ranges) or text input.

  2. 2Add states

    Each state plays an animation. Start with an entry or idle state, then add hover, pressed, loading or success.

  3. 3Connect with transitions

    Draw an arrow between states. Set the blend duration, whether to wait for the animation to finish (exit time), and the conditions, for example Speed > 10.

  4. 4Wire events

    Map pointer events on a layer to inputs, such as Mouse Down fires a trigger or hover sets a boolean. Test it in Preview.

Every control

ControlWhat it does
Trigger inputA one-time signal, like a click or a completed upload.
Boolean inputTrue or false, like isHovered or isDark.
Number inputA value such as progress, health or step.
Text inputA string such as a user name.
TransitionBlend duration, exit time and one or more conditions.
LayersSeveral state machines running at once, such as body and face.
Logic nodesAND, OR, NOT, add, subtract, multiply, divide and remainder.

What you can make with it

Buttons

Idle, hover, pressed, loading, success and error.

Toggles and checkboxes

On and off states with smooth blends.

Onboarding flows

A step input that moves through screens.

Characters and mascots

Moods and reactions set by app state.

Use it from your code

React
import { ExodeUICanvas } from 'exodeui';

export function UploadButton({ uploading, done, onRetry }) {
  return (
    <div style={{ width: 220, height: 64 }}>
      <ExodeUICanvas
        src="/upload-button.exode"
        autoPlay
        inputs={{ isLoading: uploading, isDone: done }}
        onTrigger={(name) => name === 'retry' && onRetry()}
      />
    </div>
  );
}

Three good tools for this

We make ExodeUI, so weigh our pick with that in mind.

  1. 1

    Rive

    Best forInteractive graphics with a mature state machine

    Pick it whenYour team already uses Rive and its runtimes cover your platforms.

  2. 2

    ProtoPie

    Best forHigh-fidelity prototypes for testing

    Pick it whenYou need a realistic prototype for user testing, not production code.

  3. 3

    ExodeUI

    Best forState machines with layout, data and controls in one file

    Pick it whenYou want the state machine next to auto layout, live data and real UI controls, driven from React, Flutter or SwiftUI, or edited by an AI agent.

When another tool is the better fit

If your UI logic is a simple hover or two, CSS states or a few lines of a code library are enough. A state machine pays off when states multiply.

Questions

What is an animation state machine?

It is a graph of states, each playing an animation, connected by transitions that fire when their conditions are true. Inputs from your code change which state is active.

What kinds of inputs are there?

Trigger, boolean, number and text. API variables can also feed a state machine with live data.

Can two state machines run at once?

Yes. Use layers, for example one for a character’s body and one for its face.

How does my code talk to the state machine?

Pass inputs to the runtime (for example the inputs prop in React) and listen for events with onTrigger.

More in the editor

All features →

Open the editor and try it

Free to start. Your work saves to one open .exode file that you own.

ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →