Skip to content

Wiggle API / Prop

Interface: Prop()

A property handle. Call it to set a constant or an expression, or call keys to set a keyframe track. Both compile to the same document model.

Prop(value): Node

Set a constant value or a (frame) => value expression. Returns the node.

Parameters

value

Scalar

Returns

Node

Methods

keys()

keys(frames): Node

Set an explicit keyframe track. Returns the node for chaining.

Parameters

frames

Keyframe[]

Returns

Node