Skip to content

aninest root / AnimatableTypes / LocalAnimatable

LocalAnimatable<T>

ts
type LocalAnimatable<T>: Animatable & Local<UnknownRoot, T>;

A local slice of the Animatable type.

Type Parameters

T extends UnknownRecursiveAnimatable

Example

ts
const startingState = {a: {x: 0, y: 0}, b: 0}
// the following are the local slices of the type of the startingState:
// looking at the root level
{b: 0}
// looking at the 'a' child
{ x: 0, y: 0 }

Defined in

Animate/AnimatableTypes.ts:79