Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITweenOption

The interface of optional property.

Hierarchy

  • ITweenOption

Index

Properties

Optional easing

easing: TweenEasing | ((k: number) => number)

Easing function, you can pass in a string or custom function.

Optional onComplete

onComplete: undefined | ((target?: undefined | object) => void)

A callback that is triggered when a tween action is completed.

Optional onStart

onStart: undefined | ((target?: undefined | object) => void)

A callback that is triggered when a tween action is started.

Optional onUpdate

onUpdate: undefined | ((target?: undefined | object, ratio?: undefined | number) => void)

A callback that is triggered when a tween action is update.

Optional progress

progress: undefined | ((start: number, end: number, current: number, ratio: number) => number)

Interpolation functin, you can pass in a custom function.

Generated using TypeDoc