aninest-root / AnimatableTypes / SlicedAnimatable
SlicedAnimatable<T>
ts
type SlicedAnimatable<T> = LocalAnimatable & Local<UnknownRoot, T>;
Defined in: Animate/AnimatableTypes.ts:85
A local slice of the Animatable type.
Type Parameters
T
T
extends UnknownAnimatable
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 }