weasel API - v0.8.0
    Preparing search index...

    Interface LoopOptions

    interface LoopOptions {
        cancelKey?: string;
        count?: number;
        onDone?: () => void;
    }
    Index

    Properties

    cancelKey?: string

    Any new animation passed the same cancelKey cancels the prior one in flight. Also enables animator.cancelKey / animator.isActive(key) for this loop.

    count?: number

    Maximum number of iterations. Default Infinity.

    onDone?: () => void

    Invoked when the loop reaches count iterations naturally (not on cancel).