Skip to content

1681-engine / index / TweenConfig

Interface: TweenConfig ​

Defined in: src/core/Tweener.ts:8

Tween config in the shape the renderer has always used: numeric props at the top level or under props.

Indexable ​

ts
[prop: string]: unknown

Properties ​

delay? ​

ts
optional delay?: number;

Defined in: src/core/Tweener.ts:11


duration? ​

ts
optional duration?: number;

Defined in: src/core/Tweener.ts:10


ease? ​

ts
optional ease?: string;

Defined in: src/core/Tweener.ts:17


hold? ​

ts
optional hold?: number;

Defined in: src/core/Tweener.ts:13

Ms to stay at the end values before a yoyo plays back.


onComplete? ​

ts
optional onComplete?: () => void;

Defined in: src/core/Tweener.ts:21

Returns ​

void


onStart? ​

ts
optional onStart?: () => void;

Defined in: src/core/Tweener.ts:19

Returns ​

void


onUpdate? ​

ts
optional onUpdate?: () => void;

Defined in: src/core/Tweener.ts:20

Returns ​

void


props? ​

ts
optional props?: Record<string, number>;

Defined in: src/core/Tweener.ts:18


repeat? ​

ts
optional repeat?: number;

Defined in: src/core/Tweener.ts:16

Extra plays after the first (-1 = forever).


targets ​

ts
targets: object | object[];

Defined in: src/core/Tweener.ts:9


yoyo? ​

ts
optional yoyo?: boolean;

Defined in: src/core/Tweener.ts:14

Released under the MIT License.