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.

Extended by ​

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


child() ​

child(index): PathLayer & Group

The direct child at index, in the order it was added.

Parameters ​

index ​

number

Returns ​

PathLayer & Group


find() ​

find(name): PathLayer & Group

A descendant by its name (set with node.name(...) or an SVG id), searched through the whole subtree. Throws, listing the available names, on a miss; a duplicate name resolves to the first in document order.

Parameters ​

name ​

string

Returns ​

PathLayer & Group


moveTo() ​

moveTo(x, y, opts?): Group

Parameters ​

x ​

number

y ​

number

opts? ​
at? ​

Duration

duration? ​

Duration

ease? ​

Easing

Returns ​

Group


name() ​

name(label): Group

Name this group so a parent can reach it with find, and the studio shows it.

Parameters ​

label ​

string

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