---
title: "Micro Transitions"
description: "A transitions.dev-inspired pack of badge, dropdown, modal, tabs, tooltip, and success-check micro transitions"
mode: "frame"
---
import { CatalogDetail, CatalogSlot } from "/snippets/catalog-detail.jsx";
import { InstallCommand } from "/snippets/install-command.jsx";
Micro Transitions
A transitions.dev-inspired pack of badge, dropdown, modal, tabs, tooltip, and success-check micro transitions
```html micro-transitions.html
3
Actions
Export, duplicate, archive
Ready to publish?All checks passed.
DraftLive
Copied
```
That writes one file: `compositions/components/micro-transitions.html`.
## Paste it into your composition
Open `compositions/components/micro-transitions.html` and copy what is inside into your own composition.
The file opens with a comment header that walks you through it.
A component has no size or duration of its own. It takes both from the composition
you paste it into.
## Variables
Every one of these has a default, so the piece works untouched. Set the ones you
want to change on the element:
| Variable | Default | Accepts | What it does |
| --- | --- | --- | --- |
| `badge` | `3` | string | Count inside the notification badge on the bell. |
| `tooltip` | `Copied` | string | Wording inside the small dark tooltip. |
| `tone` | `red` | `red`, `amber`, `violet` | Colour of the notification badge chip. |
| `travel` | `standard` | `close`, `standard`, `far` | Scales how far every panel starts from its resting place before it settles. |
Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:
```html wrap
```
{/* hf:generated-footer */}
Tagged `transition-primitive` `motion-primitive` `transitions-dev-port` `ui` `transition` `microinteraction`.
## Related topics
- [Browse the complete Catalog](/catalog)
- [Add assets and Catalog items in the browser editor](/studio/assets-and-blocks)
- [Put blocks together into one video](/concepts/compositions)