{#snippet child({ props, open })}
{#if open}
This is the accordion content that will transition in and out.
{/if}
{/snippet}
```
In this example:
- The `forceMount` prop ensures the components are always in the DOM.
- The `child` snippet provides access to the open state and component props.
- Svelte's `#if` block controls when the content is visible.
- Transition directives ( `transition:fade` and `transition:fly` ) apply the animations.
```svelte