Skip to main content

swap

Replace body with swap-body while this effect is active. Only for use as an animate effect, both in animate and in utils.animate.

Parameters

swap-body : content​

What to render in body's place.

alignment : alignment    default: top + left​

Where swap-body sits inside the reserved space.

stretch : bool    default: false​

Whether swap-body joins the reserved space, exactly as in alternatives. Default is false, which lets the layout reflow when this swap is shown. With true it is measured along with everything else that reserves, so the block keeps one size across every subslide.

Important: If you use a zero-length content like a context expression, you should set stretch: false.

Returns: dictionary