# Modal — Aperture

> An accessible observatory-style dialog that opens through an animated circular aperture, with keyboard support and light and dark themes.

- Category: Modal
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Aperture
- Dark mode: yes
- Access: free (sign in to copy the code)
- Tags: dialog, animation, overlay
- Page: https://builder.atheros.ai/components/modal-aperture
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_modal_aperture/preview-d0f667984590.webp

## Features

- A single centered gradient call-to-action with the official Tabler aperture icon, whose iris blades rotate on hover
- One accessible dialog that reveals with the signature Aperture iris animation
- The box wipes open from clip-path circle(0%) to circle(150%) at the center
- Telescope-viewport archetype: a thin rotating ring marker with a crosshair reticle replaces the gradient badge
- Uppercase monospace coordinate caption and a faint starfield surface carry the cosmic identity
- Cosmic indigo→cyan accent gradient and a hairline top accent bar, all derived from Celestial tokens
- Modal content — marker, coordinates, title, text, actions — staggers in with small translateY and opacity delays
- Closes via the × button, Dismiss, Track target, overlay click, or the Escape key
- Focus moves into the open dialog box and returns to the trigger on close, with a focus trap on Tab
- Responsive layout that stacks the dialog actions on small screens
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Dialog semantics** — The dialog box carries `role="dialog"`, `aria-modal="true"`, and `aria-labelledby` pointing at its title
- **Hidden state** — The closed dialog is `aria-hidden="true"` and `inert`; JS flips both when opening
- **Focus management** — The dialog box (`tabindex="-1"`) receives focus on open; focus returns to the trigger on close
- **Focus trap** — Tab and Shift+Tab cycle within the dialog while it is open
- **Trigger semantics** — Native `<button>` trigger with `aria-haspopup="dialog"` and an explicit `aria-label`
- **Button labels** — Every button — close, Dismiss, Track target — has an explicit `aria-label`
- **Escape hatch** — Escape key, overlay click, and three buttons all dismiss the dialog
- **Focus indicators** — Global `:focus-visible` outline using the `--ring` token
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all transitions

## Keyboard shortcuts

- `Escape` — Close the open dialog
- `Enter` — Activate the focused trigger or button
- `Space` — Activate the focused trigger or button
- `Tab` — Move focus between the dialog buttons

## Common questions

**Which frameworks is Modal — Aperture available in?**

Modal — Aperture ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Modal — Aperture free?**

Yes. Modal — Aperture is a free component: preview it without an account, and sign in with a free Atheros account to copy or download the full source and customise it with AI.

**Does Modal — Aperture support dark mode?**

Yes. Modal — Aperture ships light and dark themes, both drawn from the Aperture design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Modal — Aperture live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/modal-aperture

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
