effect-motion
API Referenceeffect-motionNamespacesSceneFunctions

removeChild

function removeChild(parent, child): Effect<void, never, Runner>;

Function: removeChild()

function removeChild(parent, child): Effect<void, never, Runner>;

Defined in: packages/motion/src/Scene.ts:771

Detach child from parent (no-op unless it is currently its child).

Parameters

ParameterType
parentGroupInstance
childInstance

Returns

Effect<void, never, Runner>

On this page