Insert element after target element
element.after(newElement)
Insert a new element onto the page after the target element.
Syntax
Parameters
newElemen
t: webflow.elementPresets.<preset> - The new element to be inserted into the hierarchy. This element is derived from thewebflow.elementPresets
object, which contains all Webflow elements that can be inserted onto the canvas.
Returns
Promise<AnyElement>
A Promise that resolves to an AnyElement
object.
AnyElement
represents the various element types available in a Webflow project. See a full list of supported element types in the Designer Extension type definitions.