Skip to content

Wiggle API / Group

Interface: Group

A container whose transform applies to all its children. Children are positioned in the group's own space (offsets from its origin), so the whole block moves and scales as a unit.

Properties

enter

readonly enter: GroupMotion

Entrance motion applied to the whole group.


exit

readonly exit: ExitMotion

Exit motion applied to the whole group.

Methods

add()

add<T>(node): T

Type Parameters

T

T extends Node | Group

Parameters

node

T

Returns

T


at()

at(time): Group

Set when this group's entrance begins, in seconds from scene start.

Parameters

time

Duration

Returns

Group


moveTo()

moveTo(x, y, opts?): Group

Parameters

x

number

y

number

opts?
at?

Duration

duration?

Duration

ease?

Easing

Returns

Group


rotateTo()

rotateTo(degrees, opts?): Group

Parameters

degrees

number

opts?
at?

Duration

duration?

Duration

ease?

Easing

Returns

Group


scaleTo()

scaleTo(scale, opts?): Group

Parameters

scale

number

opts?
at?

Duration

duration?

Duration

ease?

Easing

Returns

Group


x()

x(value): Group

Parameters

value

number

Returns

Group


y()

y(value): Group

Parameters

value

number

Returns

Group