Documentation

moveElement
Question mark

Moves content without affecting layout.

The move function allows you to move content while the layout still 'sees' it at the original positions. Containers will still be sized as if the content was not moved.

Example

#rect(inset: 0pt, move(
  dx: 6pt, dy: 6pt,
  rect(
    inset: 8pt,
    fill: white,
    stroke: black,
    [Abra cadabra]
  )
))
Preview

Accessibility

Moving is transparent to Assistive Technology (AT). Your content will be read in the order it appears in the source, regardless of any visual movement. If you need to hide content from AT altogether in PDF export, consider using pdf.artifact.

Parameters
Question mark

dx
relative
Settable
Question mark

The horizontal displacement of the content.

Default: 0% + 0pt

dy
relative
Settable
Question mark

The vertical displacement of the content.

Default: 0% + 0pt

body
content
Required Positional
Question mark

The content to move.