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

Methods

Properties

Events

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

Available since 1.0.0

Methods

backIn

backIn
(
  • k
)
Number public static

Defined in libs/Tween.js:679

Available since 1.0.0

backIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

backInOut

backInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:705

Available since 1.0.0

backInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

backOut

backOut
(
  • k
)
Number public static

Defined in libs/Tween.js:692

Available since 1.0.0

backOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

bounceIn

bounceIn
(
  • k
)
Number public static

Defined in libs/Tween.js:721

Available since 1.0.0

bounceIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

bounceInOut

bounceInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:756

Available since 1.0.0

bounceInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

bounceOut

bounceOut
(
  • k
)
Number public static

Defined in libs/Tween.js:733

Available since 1.0.0

bounceOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

circularIn

circularIn
(
  • k
)
Number public static

Defined in libs/Tween.js:582

Available since 1.0.0

circularIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

circularInOut

circularInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:606

Available since 1.0.0

circularInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

circularOut

circularOut
(
  • k
)
Number public static

Defined in libs/Tween.js:594

Available since 1.0.0

circularOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

cubicIn

cubicIn
(
  • k
)
Number public static

Defined in libs/Tween.js:384

Available since 1.0.0

cubicIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

cubicInOut

cubicInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:408

Available since 1.0.0

cubicInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

cubicOut

cubicOut
(
  • k
)
Number public static

Defined in libs/Tween.js:396

Available since 1.0.0

cubicOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

elasticIn

elasticIn
(
  • k
)
Number public static

Defined in libs/Tween.js:621

Available since 1.0.0

elasticIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

elasticInOut

elasticInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:657

Available since 1.0.0

elasticInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

elasticOut

elasticOut
(
  • k
)
Number public static

Defined in libs/Tween.js:639

Available since 1.0.0

elasticOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

exponentialIn

exponentialIn
(
  • k
)
Number public static

Defined in libs/Tween.js:537

Available since 1.0.0

exponentialIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

exponentialInOut

exponentialInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:561

Available since 1.0.0

exponentialInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

exponentialOut

exponentialOut
(
  • k
)
Number public static

Defined in libs/Tween.js:549

Available since 1.0.0

exponentialOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

from

from
(
  • target
  • totalFrame
  • data
)
public static

Defined in libs/Tween.js:248

Available since 1.0.0

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

Parameters:

nametypeflagdescription
target Object
totalFrame Number

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

data Object

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

nametypeflagdescription
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

kill
(
  • tween
)
public static

Defined in libs/Tween.js:319

Available since 1.0.0

Parameters:

nametypeflagdescription
tween annie.Tween

killAll

killAll () public static

Defined in libs/Tween.js:297

Available since 1.0.0

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

quadraticIn

quadraticIn
(
  • k
)
Number public static

Defined in libs/Tween.js:345

Available since 1.0.0

quadraticIn缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quadraticInOut

quadraticInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:369

Available since 1.0.0

quadraticInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quadraticOut

quadraticOut
(
  • k
)
Number public static

Defined in libs/Tween.js:357

Available since 1.0.0

quadraticOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quarticIn

quarticIn
(
  • k
)
Number public static

Defined in libs/Tween.js:423

Available since 1.0.0

quarticIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quarticInOut

quarticInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:447

Available since 1.0.0

quarticInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quarticOut

quarticOut
(
  • k
)
Number public static

Defined in libs/Tween.js:435

Available since 1.0.0

quarticOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quinticIn

quinticIn
(
  • k
)
Number public static

Defined in libs/Tween.js:462

Available since 1.0.0

quinticIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quinticInOut

quinticInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:486

Available since 1.0.0

quinticInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

quinticOut

quinticOut
(
  • k
)
Number public static

Defined in libs/Tween.js:474

Available since 1.0.0

quinticOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

sinusoidalIn

sinusoidalIn
(
  • k
)
Number public static

Defined in libs/Tween.js:501

Available since 1.0.0

sinusoidalIn 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

sinusoidalInOut

sinusoidalInOut
(
  • k
)
Number public static

Defined in libs/Tween.js:525

Available since 1.0.0

sinusoidalInOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

sinusoidalOut

sinusoidalOut
(
  • k
)
Number public static

Defined in libs/Tween.js:513

Available since 1.0.0

sinusoidalOut 缓动类型

Parameters:

nametypeflagdescription
k Number

Returns:

Number:

to

to
(
  • target
  • totalFrame
  • data
)
public static

Defined in libs/Tween.js:227

Available since 1.0.0

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

Parameters:

nametypeflagdescription
target Object
totalFrame Number

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

data Object

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

nametypeflagdescription
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以秒为单位

Top