Show:

annie.Tween Class

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

Available since 1.0.0

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

Item Index

Methods

Methods

backIn

(
  • k
)
Number public static

Defined in libs/Tween.js:677

Available since 1.0.0

backIn 缓动类型

Parameters:

Returns:

backInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:703

Available since 1.0.0

backInOut 缓动类型

Parameters:

Returns:

backOut

(
  • k
)
Number public static

Defined in libs/Tween.js:690

Available since 1.0.0

backOut 缓动类型

Parameters:

Returns:

bounceIn

(
  • k
)
Number public static

Defined in libs/Tween.js:719

Available since 1.0.0

bounceIn 缓动类型

Parameters:

Returns:

bounceInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:754

Available since 1.0.0

bounceInOut 缓动类型

Parameters:

Returns:

bounceOut

(
  • k
)
Number public static

Defined in libs/Tween.js:731

Available since 1.0.0

bounceOut 缓动类型

Parameters:

Returns:

circularIn

(
  • k
)
Number public static

Defined in libs/Tween.js:580

Available since 1.0.0

circularIn 缓动类型

Parameters:

Returns:

circularInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:604

Available since 1.0.0

circularInOut 缓动类型

Parameters:

Returns:

circularOut

(
  • k
)
Number public static

Defined in libs/Tween.js:592

Available since 1.0.0

circularOut 缓动类型

Parameters:

Returns:

cubicIn

(
  • k
)
Number public static

Defined in libs/Tween.js:382

Available since 1.0.0

cubicIn 缓动类型

Parameters:

Returns:

cubicInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:406

Available since 1.0.0

cubicInOut 缓动类型

Parameters:

Returns:

cubicOut

(
  • k
)
Number public static

Defined in libs/Tween.js:394

Available since 1.0.0

cubicOut 缓动类型

Parameters:

Returns:

elasticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:619

Available since 1.0.0

elasticIn 缓动类型

Parameters:

Returns:

elasticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:655

Available since 1.0.0

elasticInOut 缓动类型

Parameters:

Returns:

elasticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:637

Available since 1.0.0

elasticOut 缓动类型

Parameters:

Returns:

exponentialIn

(
  • k
)
Number public static

Defined in libs/Tween.js:535

Available since 1.0.0

exponentialIn 缓动类型

Parameters:

Returns:

exponentialInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:559

Available since 1.0.0

exponentialInOut 缓动类型

Parameters:

Returns:

exponentialOut

(
  • k
)
Number public static

Defined in libs/Tween.js:547

Available since 1.0.0

exponentialOut 缓动类型

Parameters:

Returns:

from

(
  • target
  • totalFrame
  • data
)
public static

Defined in libs/Tween.js:246

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. 两个参数,第一个是true或者false,表示是否真的结束了,或者是一次yoyo,一次loop的结束;第二个是data.completeParams的值

    • 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:317

Available since 1.0.0

Parameters:

killAll

() public static

Defined in libs/Tween.js:295

Available since 1.0.0

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

quadraticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:343

Available since 1.0.0

quadraticIn缓动类型

Parameters:

Returns:

quadraticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:367

Available since 1.0.0

quadraticInOut 缓动类型

Parameters:

Returns:

quadraticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:355

Available since 1.0.0

quadraticOut 缓动类型

Parameters:

Returns:

quarticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:421

Available since 1.0.0

quarticIn 缓动类型

Parameters:

Returns:

quarticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:445

Available since 1.0.0

quarticInOut 缓动类型

Parameters:

Returns:

quarticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:433

Available since 1.0.0

quarticOut 缓动类型

Parameters:

Returns:

quinticIn

(
  • k
)
Number public static

Defined in libs/Tween.js:460

Available since 1.0.0

quinticIn 缓动类型

Parameters:

Returns:

quinticInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:484

Available since 1.0.0

quinticInOut 缓动类型

Parameters:

Returns:

quinticOut

(
  • k
)
Number public static

Defined in libs/Tween.js:472

Available since 1.0.0

quinticOut 缓动类型

Parameters:

Returns:

sinusoidalIn

(
  • k
)
Number public static

Defined in libs/Tween.js:499

Available since 1.0.0

sinusoidalIn 缓动类型

Parameters:

Returns:

sinusoidalInOut

(
  • k
)
Number public static

Defined in libs/Tween.js:523

Available since 1.0.0

sinusoidalInOut 缓动类型

Parameters:

Returns:

sinusoidalOut

(
  • k
)
Number public static

Defined in libs/Tween.js:511

Available since 1.0.0

sinusoidalOut 缓动类型

Parameters:

Returns:

to

(
  • target
  • totalFrame
  • data
)
public static

Defined in libs/Tween.js:225

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. 两个参数,第一个是true或者false,表示是否真的结束了,或者是一次yoyo,一次loop的结束;第二个是data.completeParams的值

    • completeParams Array

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

    • onUpdate Function

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

    • ease Function

      缓动类型方法

    • useFrame Boolean

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

    • delay Number

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