Skip to content

API Interface TweenOptions

github-actions[bot] edited this page Nov 28, 2026 · 3 revisions

Interface: TweenOptions

Defined in: src/plugins/animation/runtime/types.ts:254

Options of tween() (ADR 0371).

Properties

delay?

readonly delay?: number;

Defined in: src/plugins/animation/runtime/types.ts:264

Seconds before the first cycle (default 0).


duration

readonly duration: number;

Defined in: src/plugins/animation/runtime/types.ts:256

Seconds per cycle.


ease?

readonly ease?: 
  | Curve
  | TweenEase;

Defined in: src/plugins/animation/runtime/types.ts:262

An easing by name, or any engine curve over 0–1 (default "outQuad").


from?

readonly from?: TweenValue;

Defined in: src/plugins/animation/runtime/types.ts:258

The start value (default: the field's value when the tween starts).


loopMode?

readonly loopMode?: "restart" | "yoyo";

Defined in: src/plugins/animation/runtime/types.ts:268

How a loop restarts: from the start (default) or back and forth.


loops?

readonly loops?: number;

Defined in: src/plugins/animation/runtime/types.ts:266

Cycles to play (default 1); -1 loops until stopped.


relative?

readonly relative?: boolean;

Defined in: src/plugins/animation/runtime/types.ts:260

to is a change added to the start value (DOTween's By), not an end value. Default false.


speed?

readonly speed?: number;

Defined in: src/plugins/animation/runtime/types.ts:272

Its own time scale (default 1).


time?

readonly time?: "fixed" | "scaled" | "unscaled";

Defined in: src/plugins/animation/runtime/types.ts:270

The clock the tween follows (default "scaled"): the World's scaled time, unscaled time, or fixed steps.

Clone this wiki locally