move
Element
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]
)
))
Parameters
dx
The horizontal displacement of the content.
Default: 0% + 0pt
dy
The vertical displacement of the content.
Default: 0% + 0pt
body
The content to move.