Show:

annie.Tween Class

Defined in: libs/Tween.js:225
Module: annie

Available since 1.0.0

全局静态单列类,不要实例化此类

Item Index

Methods

Methods

backIn

(
  • k
)
Number public static

Defined in libs/Tween.js:686

Available since 1.0.0

backIn 缓动类型

Parameters:

Returns:

backInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:712

Available since 1.0.0

backInOut 缓动类型

Parameters:

Returns:

backOut

(
  • k
)
Number public static

Defined in libs/Tween.js:699

Available since 1.0.0

backOut 缓动类型

Parameters:

Returns:

bounceIn

(
  • k
)
Number public static

Defined in libs/Tween.js:728

Available since 1.0.0

bounceIn 缓动类型

Parameters:

Returns:

bounceInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:763

Available since 1.0.0

bounceInOut 缓动类型

Parameters:

Returns:

bounceOut

(
  • k
)
Number public static

Defined in libs/Tween.js:740

Available since 1.0.0

bounceOut 缓动类型

Parameters:

Returns:

circularIn

(
  • k
)
Number public static

Defined in libs/Tween.js:589

Available since 1.0.0

circularIn 缓动类型

Parameters:

Returns:

circularInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:613

Available since 1.0.0

circularInOut 缓动类型

Parameters:

Returns:

circularOut

(
  • k
)
Number public static

Defined in libs/Tween.js:601

Available since 1.0.0

circularOut 缓动类型

Parameters:

Returns:

cubicIn

(
  • k
)
Number public static

Defined in libs/Tween.js:391

Available since 1.0.0

cubicIn 缓动类型

Parameters:

Returns:

cubicInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:415

Available since 1.0.0

cubicInOut 缓动类型

Parameters:

Returns:

cubicOut

(
  • k
)
Number public static

Defined in libs/Tween.js:403

Available since 1.0.0

cubicOut 缓动类型

Parameters:

Returns:

elasticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:628

Available since 1.0.0

elasticIn 缓动类型

Parameters:

Returns:

elasticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:664

Available since 1.0.0

elasticInOut 缓动类型

Parameters:

Returns:

elasticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:646

Available since 1.0.0

elasticOut 缓动类型

Parameters:

Returns:

exponentialIn

(
  • k
)
Number public static

Defined in libs/Tween.js:544

Available since 1.0.0

exponentialIn 缓动类型

Parameters:

Returns:

exponentialInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:568

Available since 1.0.0

exponentialInOut 缓动类型

Parameters:

Returns:

exponentialOut

(
  • k
)
Number public static

Defined in libs/Tween.js:556

Available since 1.0.0

exponentialOut 缓动类型

Parameters:

Returns:

from

(
  • target
  • totalFrame
  • data
)
public static

Defined in libs/Tween.js:255

Available since 1.0.0

将target对象从data中指定的属性数值渐变到target属性当前的数值

Parameters:

  • target Object
  • totalFrame Number

    总时间长度 如果data.useFrame为true 这里就是帧数,如果data.useFrame为false则这里就是时间

  • data Object

    包含target对象的各种数字类型属性及其他一些方法属性

    • yoyo Number:boolean

      是否像摆钟一样来回循环,默认为false.设置为true则会无限循环,或想只运行指定的摆动次数,将此参数设置为数字就行了。

    • loop Number:boolean

      是否循环播放。

    • onComplete Function

      完成结束函数. 默认为null. 两个参数,第一个是data.completeParams的值,第二个是true或者false,表示是否真的结束了,或者是一次yoyo,一次loop的结束

    • completeParams Array

      完成函数参数. 默认为null,可以给完成函数里传参数

    • onUpdate Function

      进入每帧后执行函数,回传参数是当前的Tween时间比.默认为null

    • ease Function

      缓动类型方法

    • useFrame Boolean

      为false用时间秒值;为true则是以帧为单位

    • delay Number

      延时,useFrame为true以帧为单位 useFrame为false以秒为单位

kill

(
  • tween
)
public static

Defined in libs/Tween.js:326

Available since 1.0.0

Parameters:

killAll

() public static

Defined in libs/Tween.js:304

Available since 1.0.0

销毁所有正在运行的Tween对象

quadraticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:352

Available since 1.0.0

quadraticIn缓动类型

Parameters:

Returns:

quadraticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:376

Available since 1.0.0

quadraticInOut 缓动类型

Parameters:

Returns:

quadraticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:364

Available since 1.0.0

quadraticOut 缓动类型

Parameters:

Returns:

quarticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:430

Available since 1.0.0

quarticIn 缓动类型

Parameters:

Returns:

quarticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:454

Available since 1.0.0

quarticInOut 缓动类型

Parameters:

Returns:

quarticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:442

Available since 1.0.0

quarticOut 缓动类型

Parameters:

Returns:

quinticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:469

Available since 1.0.0

quinticIn 缓动类型

Parameters:

Returns:

quinticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:493

Available since 1.0.0

quinticInOut 缓动类型

Parameters:

Returns:

quinticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:481

Available since 1.0.0

quinticOut 缓动类型

Parameters:

Returns:

sinusoidalIn

(
  • k
)
Number public static

Defined in libs/Tween.js:508

Available since 1.0.0

sinusoidalIn 缓动类型

Parameters:

Returns:

sinusoidalInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:532

Available since 1.0.0

sinusoidalInOut 缓动类型

Parameters:

Returns:

sinusoidalOut

(
  • k
)
Number public static

Defined in libs/Tween.js:520

Available since 1.0.0

sinusoidalOut 缓动类型

Parameters:

Returns:

to

(
  • target
  • totalFrame
  • data
)
public static

Defined in libs/Tween.js:234

Available since 1.0.0

将target对象从data中指定的属性数值渐变到target属性当前的数值

Parameters:

  • target Object
  • totalFrame Number

    总时间长度 如果data.useFrame为true 这里就是帧数,如果data.useFrame为false则这里就是时间

  • data Object

    包含target对象的各种数字类型属性及其他一些方法属性

    • yoyo Number:boolean

      是否像摆钟一样来回循环,默认为false.设置为true则会无限循环,或想只运行指定的摆动次数,将此参数设置为数字就行了。

    • loop Number:boolean

      是否循环播放。

    • onComplete Function

      完成结束函数. 默认为null. 两个参数,第一个是data.completeParams的值,第二个是true或者false,表示是否真的结束了,或者是一次yoyo,一次loop的结束

    • completeParams Array

      完成函数参数. 默认为null,可以给完成函数里传参数

    • onUpdate Function

      进入每帧后执行函数,回传参数是当前的Tween时间比.默认为null

    • ease Function

      缓动类型方法

    • useFrame Boolean

      为false用时间秒值;为true则是以帧为单位

    • delay Number

      延时,useFrame为true以帧为单位 useFrame为false以秒为单位