MotionScript

@motion-script/core


@motion-script/core / RelativeToParent

Type Alias: RelativeToParent

RelativeToParent = "inherit" | ChildPositioning

Defined in: attributes/layout/positioning.ts:39

One child's override of its parent's ChildPositioningNode.relativeToParent.

  • 'inherit' (default) — take the parent's childPositioning.
  • 'relative' — be laid out by the parent even inside an absolute container.
  • 'absolute' — pin to the stage even inside a relative container.

A node with no parent is 'relative': there is nothing above it to be absolute against.