Taos API Reference
    Preparing search index...

    Interface AnimTransition

    A cross-fade transition between states.

    interface AnimTransition {
        from: string;
        to: string;
        duration: number;
        condition?: () => boolean;
    }
    Index

    Properties

    from: string

    Source state name, or '*' to allow it from any state.

    to: string

    Destination state name.

    duration: number

    Cross-fade duration in seconds (0 = instant).

    condition?: () => boolean

    Auto-fires when this returns true. Omit for travel()-only transitions.