Skip to main content

Layer API

Layer object is the object placed in composition and which contains one element object. Layer defines general behavior, such as when it should be visible (startFrame) and for how long it should be visible (duration). More properties are listed in the Properties section.

Properties

id Read-Only

  • Type: string

ID of the layer.

domNode Read-Only

  • Type: HTML DOM element

Reference to DOM element representing layer.

startFrame Read-Only

  • Type: number

Frame from which layer will start from.

duration

  • Type: number

Duration of the composition in frames.

isVisible

  • Type: boolean

If layer is visible or not.

element Read-Only

Reference to the element contained by layer.

masks Read-Only

Array of Loopic Mask objects that are applied on layer.