全螢幕預覽
Cairn — 擬物青瓷保險庫印章膠囊互動元件
一句話安裝至 AGENT · 極速上手 免費商用 · 免綁信用卡 · 無試用倒數
Claude Code Cursor Codex Antigravity OpenClaw
Build my website from Motion3D "Cairn — Tactile Celadon Vault Seal Pill" (https://motion3d.dev/works/cairn-seal/): unpack the standalone ZIP into ./site, keep the 60fps Vanilla JS / CSS3 + HTML5 motion skeleton intact, and swap copy, logo & palette for my brand
永久免費商用授權 · 複製指令交給您的 Agent,免登入即可直接下載原始碼 ZIP 專案包。
架構拆解與色票
Production English AI Prompt · 6614 chars
Build **Cairn**, a tactile, ceramic-minimalist interactive vault-sealing control inspired by Braun hardware switches and pale Kyoto celadon stoneware. Presented as a pure, distraction-free full-viewport studio piece (`100vw × 100vh`), the widget centers a soft-skeuomorphic porcelain pill button above a single muted status line and executes a five-stage physical state machine—idle rest, tactile pointer press, milled recessed batch progress with organic network bursts, two-stage checkmark-glide confirmation, and downward return to idle. ### Visual Aesthetic, Studio Lighting & Exact Palette Render the full-viewport canvas with a seamless radial studio spotlight centered behind the button: luminous pale celadon-porcelain `#EEF2EC` in the core halo, stepping gently through `#E5ECE2` and `#E0E8DB` to mist-sage corners `#DBE5D8`. Position the centered vertical stack (pill + status caption) slightly above mathematical center so the pill midpoint sits around 45.5% of viewport height for ideal optical balance. Construct the capsule button at `362px × 126px` on desktop (`2.87:1` aspect ratio, `border-radius: 9999px`, scaled smoothly on smaller screens without altering proportions) with multi-layered soft-skeuomorphic hardware lighting: - **Convex Ceramic Body**: Subtle top-to-bottom surface gradient `#ECF3E9` (upper dome) → `#E5EDE0` (mid face) → `#DEE7DA` (lower belly), enclosed by a razor-thin `#E4EBE4` outer edge seam. - **Top Specular Glaze**: Crisp upper inner highlight (`inset 0 2px 2px #F7FEF7`, `inset 0 1px 0 rgba(255,255,255,0.92)`) paired with a delicate diffuse ambient glow directly behind the upper rim. - **Layered Contact Drop Shadow**: Multi-stop soft bottom elevation (`0 2px 4px rgba(176,188,174,0.45)`, `0 12px 22px -4px rgba(185,196,182,0.55)`, `0 22px 36px -6px rgba(196,206,193,0.45)` anchored by contact tone `#C8D0C6`) with ~28px smooth vertical feathering. - **Milled Recessed Progress Track (`272px × 16px`, `border-radius: 9999px`)**: Concave groove floor `#D6DED3` sculpted with a dark upper carved inset shadow (`inset 0 2px 3px #B7C3B9`, `inset 0 1px 1px rgba(128,144,131,0.38)`) AND a crisp bright lower inner rim catch-light (`0 1.5px 0 #F9FCF4`, `inset 0 -1px 1px rgba(249,252,244,0.95)`) so the channel reads as physically milled into ceramic. - **Botanical Pine Accent**: Deep pine cylindrical progress fill (`linear-gradient(180deg, #456151 0%, #304C3B 45%, #253B2D 100%)`, core `#304C3B`) and matching `42px × 42px` circular confirmation badge (`#314B3C`) housing a crisp rounded-cap checkmark stroke (`#EDFCF0`, `2.8px` stroke width). ### Typography & Original Copy System Load Google Fonts `Plus Jakarta Sans` (500) and `Inter` (400, 500). - **Primary Capsule Label**: `29px` (proportional to pill), weight `500`, `-0.02em` tracking, deep forest-obsidian ink `#212920`. - Idle CTA: `"Seal vault"` - Confirmed Label: `"Sealed"` (paired to the right of the `42px` checkmark badge with a `14px` gap) - **Secondary Status Caption** (`52px` below capsule bottom edge): `17.5px`, weight `400`, muted olive-sage `#788076`, strictly styled with `font-variant-numeric: tabular-nums` so incrementing digits never shift horizontally. - Idle / Confirmed Caption: `"Vault · sealed just now"` - Active Progress Caption: `"Vault · {count} of 164"` (counting smoothly from `0` through milestones like `24 of 164` and `96 of 164` up to `164 of 164`). ### Five-Stage State Machine & Motion Choreography Implement a clean React/TypeScript (or vanilla JS) finite state machine (`idle → pressing → sealing → hold → confirmed → resetting → idle`) inside an `overflow: hidden` inner viewport mask within the capsule so every inner transition clips cleanly against the ceramic surface: 1. **Idle & Hover**: Capsule rests at `scale(1)`. Pointer hover adds subtle cursor affordance (`pointer`) and gentle specular lift with zero layout shift. 2. **Tactile Press (`0–200ms`)**: On click or `Enter`/`Space`, depress the capsule (`scale(0.98)`, `translateY(2px)`) while compressing its bottom drop shadow by ~35%. Immediately swap the status caption to `"Vault · 0 of 164"`. 3. **Upward Slot Morph & Organic 3-Burst Progress (`~2.5s`)**: On release, rebound the capsule to `scale(1)`. Slide `"Seal vault"` upward out of the mask (`translateY(0 → -26px)`, `opacity: 1 → 0`, `filter: blur(4px)`, `200ms`) while the recessed track rises from below (`translateY(+26px → 0)`, `opacity: 0 → 1`, spring `stiffness: 340, damping: 28`). Drive progress from `0%` to `100%` over `2.35s` via `requestAnimationFrame` along a non-linear 3-burst piecewise curve—Burst 1 (`0% → 22%`, `420ms`), micro-pause trickle (`22% → 25%`, `380ms`), Burst 2 (`25% → 64%`, `580ms`), micro-pause trickle (`64% → 69%`, `380ms`), Burst 3 (`69% → 100%`, `590ms`)—updating `Math.round(progress * 164)` in lockstep with the bar. Hold at `100%` (`"Vault · 164 of 164"`) for `140ms`, then fade the counter out (`160ms`). 4. **Two-Stage Checkmark Pop, Leftward Glide & Blur-Reveal (`~2.3s`)**: Slide the filled track upward out of the mask (`180ms`). Immediately pop the `42px` pine checkmark circle upward from below into horizontal dead center (`translateY(+24px → 0)`, `scale(0.76 → 1)`, crisp spring settle) while drawing the SVG checkmark stroke (`stroke-dashoffset`). After an `80ms` centered pause, smoothly glide the circle leftward (`translateX(0 → -60px)` from pill center, `280ms`, `cubic-bezier(0.22, 1, 0.36, 1)`) while cross-fading the bottom caption back to `"Vault · sealed just now"`. As the badge settles on the left, materialize `"Sealed"` beside it using a Gaussian blur-to-sharp reveal (`filter: blur(7px) → blur(0px)`, `opacity: 0 → 1`, `translateX(8px → 0)`, `240ms`). Hold the confirmed state for `1.7s`. 5. **Downward Reset to Idle (`~340ms`)**: Reverse vertical direction—drop the `✓ Sealed` group downward out of the mask (`translateY(0 → +26px)`, `opacity: 0`, `blur(4px)`) while `"Seal vault"` descends softly from above (`translateY(-26px → 0)`, `opacity: 0 → 1`, spring settle), restoring interactive readiness. ### Engineering Quality & Accessibility Keep capsule geometry strictly immutable across states, animate exclusively GPU-composited properties (`transform`, `opacity`, `filter`), ignore duplicate clicks while active, expose `aria-live="polite"` status text for assistive technologies, and provide a clean `prefers-reduced-motion` fallback that cross-fades states cleanly without vertical travel or blur. Keep the viewport completely pure—no navbars, cards, or visual clutter—allowing users to trigger the cycle directly by clicking the capsule or pressing `Space`/`Enter`.
架構拆解、動態技術棧與色彩系統

原創設計理念

Cairn Seal elevates high-trust security actions and membership confirmations into a meditative physical button interaction — demonstrating extreme micro-interaction craft in pure CSS3 and vanilla JS.

色彩系統(點擊複製 Hex)

版面架構與區塊拆解

Focused single-screen studio showcase centering the sculpted celadon vault pill over a calm mineral backdrop, accompanied by subtle state telemetry and replay controls.

動態編排與前端工程棧

Deterministic 5-state JavaScript spring machine driving layered CSS inset highlights, subtle press-depth shadows, three-phase burst progress fill, and optical de-blur confirmation typography.

工程實作重點與避坑指南

  • Layer opposing top-left specular and bottom-right ambient inset shadows to mimic glazed celadon ceramic under soft overhead light.
  • Choreograph the completion sequence in two beats (centered checkmark spring-in -> slide left + unblur label) for unmistakable tactile closure.
  • Respect prefers-reduced-motion by shortening spring bounce while preserving clear state feedback.

Performance, Mobile Fallback & AI Customization Specs

Cairn (互動元件 · 3D 與互動工藝, Motion3D craft score 9.6/10) ships as a zero-build, self-contained light editorial studio architecture across 6 source files (18.1 KB ZIP) powered by Vanilla JS / CSS3 / HTML5 with 零 CDN 本機離線相依函式庫. Primary interactive behaviors include Cursor & Physics, anchored on calibrated color tokens (Porcelain Spotlight Center (#EEF2EC), Mist Celadon Vignette (#DBE5D8), Celadon Ceramic Surface (#ECF3E9), Soft Contact Shadow (#C8D0C6)).

  • 60fps GPU Hygiene & Resize Resilience: Pixel ratio clamping, debounced resize listeners, and GPU-composited transforms keep frame pacing steady across Retina displays without leaking WebGL contexts or stalling main-thread scroll.
  • Mobile & Reduced-Motion Graceful Degradation: Touch viewports automatically simplify hover-only physics into responsive tap/scroll interactions while respecting prefers-reduced-motion and preserving clean typography hierarchy.
  • Zero-Drift AI Re-Skinning: Feed the bundled 6614-character production prompt into Claude Code, Cursor, OpenAI Codex, Antigravity, or Vercel v0—or connect Motion3D MCP (npx -y motion3d-mcp)—so your agent edits content and CSS variables without breaking shader uniforms or camera damping.
  • Free Shadcn Registry CLI Install: Pull this permanently free blueprint directly into your codebase with npx shadcn@latest add https://motion3d.dev/r/cairn-seal.json (index: /r/registry.json).
常見問題

Frequently Asked Questions About Cairn

Can I preview Cairn live and use it in commercial client websites?

Yes. Cairn is permanently free ($0, zero login required) with a 1:1 live browser preview, direct standalone ZIP download (6 files, 18.1 KB), zero-key MCP install, and Shadcn Registry CLI (npx shadcn@latest add https://motion3d.dev/r/cairn-seal.json). It carries a full commercial license for personal, startup, and paid client agency builds with no attribution required.

What tech stack, bundle size, and mobile fallback does Cairn use?

Cairn is engineered with Vanilla JS / CSS3 / HTML5 across 6 clean source files (18.1 KB ZIP with 零 CDN 本機離線相依函式庫). It targets smooth 60fps desktop rendering with bounded devicePixelRatio scaling, responsive viewport resize handling, touch-friendly interaction fallbacks on mobile devices, and zero external CDN breakage.

How do I customize Cairn with Claude Code, Cursor, Codex, or Vercel v0?

Unpack the standalone ZIP (or pull via official MCP `npx -y motion3d-mcp` / `npx shadcn@latest add https://motion3d.dev/r/cairn-seal.json`), then hand your AI coding agent the included 6614-character production prompt alongside your brand copy and target palette tokens. Preserve the core Vanilla JS / CSS3 / HTML5 motion skeleton while replacing typography, imagery, and CTA routes—or wrap the module cleanly inside Next.js, React, Vue, or Astro.

更多原創 3D 藍圖

More in 3D 與互動工藝 →