Zoom into UI
ProA scroll section that flies into a live product screen, from the whole dashboard down to one data point, with captions per level.
- A feature page that walks from the whole product into one feature.
- A launch page where the zoom itself tells the story of drilling down.
- A real in-app tour; use product-tour or onboarding-tour.
- Content people need to read or interact with; the screen is a picture made of UI.
Installation
Pro source and install commands unlock with a Pro plan.
Usage
Use this on a product or feature page to walk from the big picture into one feature. Swap the ProductScreen for your own UI, mark each target with data-zone, and describe the levels in zoom-into-ui-data.ts; the camera frames whatever you mark.
import { ZoomIntoUi } from "@/components/arc/blocks/zoom-into-ui/zoom-into-ui"; export function Tour() { return ( <ZoomIntoUi levels={[ { id: "all", target: "screen", title: "Everything at a glance", body: "Your numbers, live." }, { id: "chart", target: "chart", title: "Open any metric", body: "See the days behind it." }, ]} /> );}ZoomIntoUi
A scroll driven section that flies a camera into a live product screen: from the whole dashboard into a chart, a single data point and the thread about it, with a caption per level and everything outside the frame dimmed.
levelsZoomLevel[]sampleLevelsOne entry per zoom level with id, target ("screen", "chart", "peak" or "insight"), title and body.labelstring"Tidal product tour"Accessible name of the section and its scroll region.onLevelChange(index: number) => void–Called when the current level changes.classNamestring–Extra class on the section.- Tab
- Focuses the scroll region, then the level buttons.
- Arrow keysorPage UporPage DownorSpace
- Scroll the region, which drives the zoom.
- EnterorSpace on a level
- Scrolls to that level.
- The scroll region is focusable and labelled, so keyboard users can scroll it.
- The product screen is decorative and hidden from assistive tech; captions carry the story and are announced politely as they change.
- Level buttons are labelled with their caption and mark the current one with aria-current.
- Scroll progress passes through a spring, then the camera blends scale geometrically and moves its focus with the inverse of scale, so the target stays put while you fly into it.
- Each level holds for a moment before the camera moves on; captions swap in the scroll direction with a short blur.
- The screen is real DOM, so text stays sharp at every zoom and it follows the theme and accent.
- Reduced motion jumps between levels and crossfades the captions.
- The stage and caption share a frame of about 84vh; the screen scales to fit at any width.
- Below 560px the level buttons move above the caption and stretch across.
- One transform on one element per frame, written directly without re-rendering React.
- Layout is measured once per resize; scroll only reads scrollTop.
Notes for AI
Give your coding assistant the Markdown reference instead of screenshots.
- Replace ProductScreen with your own UI and mark the parts you want to frame with data-zone; the camera measures them.
- Keep three to five levels; each needs one clear thing to look at.
- Frame targets that are at least about 200 by 120 design pixels so the zoom stays under the 3.4x cap.
The full library index for assistants is at /llms.txt.