---
title: "Sticky Mock Swap"
description: "A pinned product mock cross-fades through accent-tinted feature states while matching captions rise, hold, and exit beside it."
---
import { InstallCommand } from "/snippets/install-command.jsx";
import { VariablesExplorer } from "/snippets/variables-explorer.jsx";
```html sticky-mock-swap.html
Sticky Mock Swap
```
## Install
That writes one file: `compositions/components/sticky-mock-swap.html`.
## Paste it into your composition
Open `compositions/components/sticky-mock-swap.html` and copy what is inside into your own composition.
A component has no size or duration of its own. It takes both from the composition
you paste it into.
{/* hf:generated-footer */}
Tagged `motion-primitive` `product-demo` `sticky` `mock` `crossfade` `feature-tour`.
## Related topics
- [Browse the complete Catalog](/catalog)
- [Add assets and Catalog items in Studio](/studio/assets-and-blocks)
- [Build a richer composition](/go-further)