# Mercury

> Documentation for Mercury, a Svelte UI animation library.

## Docs

- [Introduction](https://mercury.uialchemy.com/docs): What is Mercury?
- [Getting Started](https://mercury.uialchemy.com/docs/getting-started): Seamlessly integrate Motion-powered animations into your Svelte projects using Mercury.

## API

- [Animate](https://mercury.uialchemy.com/docs/api/animate): Animate elements with Motion's animation props, using the mercury attachment.
- [Variants](https://mercury.uialchemy.com/docs/api/variants): Name animation states and orchestrate them across a tree of elements.
- [Gestures](https://mercury.uialchemy.com/docs/api/gestures): Hover, tap, focus, in-view, pan and drag gestures, with Motion's gesture props.
- [Presence (Enter / Exit)](https://mercury.uialchemy.com/docs/api/presence): Animate elements as they're added and removed, like Motion's AnimatePresence.
- [Layout Animations](https://mercury.uialchemy.com/docs/api/layout-animations): Animate position, size, reordering, and shared elements with Mercury's layout API.
- [Motion values](https://mercury.uialchemy.com/docs/api/motion-values): Drive styles from Motion's motion values — scroll progress, springs and derived values — without re-running Svelte code.
- [Configuration](https://mercury.uialchemy.com/docs/api/configuration): Default transitions, reduced motion and skipping animations — Motion's MotionConfig.
- [Coming from Motion](https://mercury.uialchemy.com/docs/api/coming-from-motion): Every motion/react API and its Mercury equivalent.

## Agent resources

- [llms-full.txt](https://mercury.uialchemy.com/llms-full.txt): The full Markdown of every page in one file.
- [Page Markdown](https://mercury.uialchemy.com/index.md): Append `.md` to any page URL to fetch that page as raw Markdown.
- [JSON API](https://mercury.uialchemy.com/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://mercury.uialchemy.com/openapi.json.
- [API catalog](https://mercury.uialchemy.com/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here.
- [AI catalog](https://mercury.uialchemy.com/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs).
- [agent-readability.json](https://mercury.uialchemy.com/agent-readability.json): Manifest of every agent-facing artifact on this site.
- [Sitemap](https://mercury.uialchemy.com/sitemap.xml): Every indexable page URL with its last-modified date.
