Options
All
  • Public
  • Public/Protected
  • All
Menu

Module tween

Index

Classes

Interfaces

Type aliases

Functions

Type aliases

TweenEasing

TweenEasing: "linear" | "smooth" | "fade" | "quadIn" | "quadOut" | "quadInOut" | "quadOutIn" | "cubicIn" | "cubicOut" | "cubicInOut" | "cubicOutIn" | "quartIn" | "quartOut" | "quartInOut" | "quartOutIn" | "quintIn" | "quintOut" | "quintInOut" | "quintOutIn" | "sineIn" | "sineOut" | "sineInOut" | "sineOutIn" | "expoIn" | "expoOut" | "expoInOut" | "expoOutIn" | "circIn" | "circOut" | "circInOut" | "circOutIn" | "elasticIn" | "elasticOut" | "elasticInOut" | "elasticOutIn" | "backIn" | "backOut" | "backInOut" | "backOutIn" | "bounceIn" | "bounceOut" | "bounceInOut" | "bounceOutIn"
en

Built-in string value definition for the cache function.

zh

内置缓动函数的字符串值定义。

Functions

tween

  • tween(target?: undefined | object): Tween
  • tween is a utility function that helps instantiate Tween instances.

    example

    tween(this.node) .to(1, {scale: new Vec3(2, 2, 2), position: new Vec3(5, 5, 5)}) .call(() => { console.log('This is a callback'); }) .by(1, {scale: new Vec3(-1, -1, -1)}, {easing: 'sineOutIn'}) .start()

    Parameters

    • Optional target: undefined | object

      缓动的目标

    Returns Tween

    Tween 实例

tweenUtil

  • tweenUtil(target?: undefined | object): Tween
  • tweenUtil is a utility function that helps instantiate Tween instances.

    deprecated

    please use tween instead.

    Parameters

    • Optional target: undefined | object

    Returns Tween

Generated using TypeDoc