# fragment

    .fragment behavior:{SlidesFragment.Behavior = SlidesFragment.Behavior.SHOW} content:{MarkdownContent} -> Node

Content copied to clipboard

Creates an element that, when used in a `slides` document, shows its content when the user attempts to go to the next slide.

Multiple fragments in the same slide are shown in order on distinct user interactions.

#### Return

a new SlidesFragment node

#### Parameters

behavior

- Optional

visibility type of the fragment and how it reacts to user interactions

#### Values

- `show`
- `hide`
- `semihide`
- `showhide`

content

- Likely a body argument

content to show/hide

#### Wiki page

slides-fragment

#### Target

This function is only available for the following document types: `slides`.