Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Add interactive animation showcase to features page
nirholas1b123f276597
diff --git a/data/changelog.json b/data/changelog.jsonindex f69694853..e86ed1a9d 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -2747,6 +2747,15 @@"improvement"],"link": "/embed"+ },+ {+ "date": "2026-06-16",+ "title": "Features page — interactive animation showcase with 30+ live demos",+ "summary": "The /features page now has a live animation showcase you can interact with in the browser. Pick from 30+ animations grouped by type (Idle, Dance, Celebration, Athletic, Combat, Walk, Mood) — the 3D avatar switches instantly with no page reload. The Widget Studio card also got a live preview panel showing what the embed looks like on a real site, plus a one-click snippet copy button.",+ "tags": [+ "improvement"+ ],+ "link": "/features"}]}diff --git a/pages/features.html b/pages/features.htmlindex 66a55af07..95764725d 100644--- a/pages/features.html+++ b/pages/features.html@@ -94,6 +94,115 @@</div></section>+ <!-- ════════════════════════════════════+ ANIMATION SHOWCASE — interactive demo+ ════════════════════════════════════ -->+ <section class="feat-anim-showcase" id="animations" aria-label="Animation showcase">+ <div class="feat-anim-inner">+ <div class="feat-anim-stage" id="animStage">+ <model-viewer+ id="animViewer"+ src="/animations/idle_anim.glb"+ auto-rotate+ auto-rotate-delay="0"+ rotation-per-second="14deg"+ interaction-prompt="none"+ camera-controls+ disable-zoom+ shadow-intensity="0.2"+ exposure="0.85"+ environment-image="neutral"+ camera-orbit="0deg 78deg 4.5m"+ field-of-view="40deg"+ loading="lazy"+ reveal="interaction"+ aria-label="3D avatar playing the selected animation"+ ></model-viewer>+ <div class="feat-anim-stage-overlay" aria-hidden="true">+ <span class="feat-anim-now-playing" id="animNowPlaying">Idle</span>+ </div>+ </div>+ <div class="feat-anim-controls">+ <p class="feat-eyebrow" style="margin-bottom:6px">70+ Animations</p>+ <h2 class="feat-anim-title">Every move, live in your browser.</h2>+ <p class="feat-anim-sub">Pick any animation below. Your avatar switches instantly — no page reload, no install. These run on any device, in any embed.</p>++ <div class="feat-anim-groups" id="animGroups">+ <div class="feat-anim-group">+ <span class="feat-anim-group-label">Idle</span>+ <div class="feat-anim-pills">+ <button class="feat-anim-pill feat-anim-pill--active" data-src="/animations/idle_anim.glb">Idle</button>+ <button class="feat-anim-pill" data-src="/animations/Idle_Breath.glb">Breathing</button>+ <button class="feat-anim-pill" data-src="/animations/Just_chilling.glb">Chilling</button>+ <button class="feat-anim-pill" data-src="/animations/Standard_Waiting.glb">Waiting</button>+ <button class="feat-anim-pill" data-src="/animations/Standard_Vtubing_Movement.glb">Vtubing</button>+ <button class="feat-anim-pill" data-src="/animations/pose1.glb">Pose</button>+ </div>+ </div>+ <div class="feat-anim-group">+ <span class="feat-anim-group-label">Dance</span>+ <div class="feat-anim-pills">+ <button class="feat-anim-pill" data-src="/animations/dance_shuffle.glb">Shuffle</button>+ <button class="feat-anim-pill" data-src="/animations/Dance_Head_Banging_V03.glb">Head Bang</button>+ <button class="feat-anim-pill" data-src="/animations/Banging_Tunes_left.glb">Banging Tunes</button>+ <button class="feat-anim-pill" data-src="/animations/Energic_conductor.glb">Conductor</button>+ </div>+ </div>+ <div class="feat-anim-group">+ <span class="feat-anim-group-label">Celebration</span>+ <div class="feat-anim-pills">+ <button class="feat-anim-pill" data-src="/animations/Celebrating.glb">Celebrating</button>+ <button class="feat-anim-pill" data-src="/animations/Cheering.glb">Cheering</button>+ <button class="feat-anim-pill" data-src="/animations/Expressing_joy.glb">Joy</button>+ <button class="feat-anim-pill" data-src="/animations/Brag_n_Claps.glb">Brag & Clap</button>+ <button class="feat-anim-pill" data-src="/animations/Call_Me.glb">Call Me</button>+ </div>+ </div>+ <div class="feat-anim-group">+ <span class="feat-anim-group-label">Athletic</span>+ <div class="feat-anim-pills">+ <button class="feat-anim-pill" data-src="/animations/back_flip.glb">Back Flip</button>+ <button class="feat-anim-pill" data-src="/animations/Suoerhero_Jump.glb">Superhero Jump</button>+ <button class="feat-anim-pill" data-src="/animations/Arm_Flex.glb">Arm Flex</button>+ <button class="feat-anim-pill" data-src="/animations/Flexing_Arm.glb">Flexing</button>+ <button class="feat-anim-pill" data-src="/animations/Gymnastics_Aerial.glb">Aerial</button>+ <button class="feat-anim-pill" data-src="/animations/Gorilla_chest_bump.glb">Chest Bump</button>+ </div>+ </div>+ <div class="feat-anim-group">+ <span class="feat-anim-group-label">Combat</span>+ <div class="feat-anim-pills">+ <button class="feat-anim-pill" data-src="/animations/Angry.glb">Angry</button>+ <button class="feat-anim-pill" data-src="/animations/Arm_Combo_Muay_Thai.glb">Muay Thai</button>+ <button class="feat-anim-pill" data-src="/animations/Boxers_dance.glb">Boxer Dance</button>+ <button class="feat-anim-pill" data-src="/animations/Standard_Push_Block_Variation.glb">Push Block</button>+ <button class="feat-anim-pill" data-src="/animations/Cheap_Spy.glb">Spy</button>+ </div>+ </div>+ <div class="feat-anim-group">+ <span class="feat-anim-group-label">Walk</span>+ <div class="feat-anim-pills">+ <button class="feat-anim-pill" data-src="/animations/Standard_Walk_Cycle_Feminine.glb">Walk (F)</button>+ <button class="feat-anim-pill" data-src="/animations/Standard_Walk_Crouching.glb">Crouching</button>+ <button class="feat-anim-pill" data-src="/animations/Standard_Stand_To_Crouch_To_Stand.glb">Crouch+Stand</button>+ </div>+ </div>+ <div class="feat-anim-group">+ <span class="feat-anim-group-label">Mood</span>+ <div class="feat-anim-pills">+ <button class="feat-anim-pill" data-src="/animations/Facepalm.glb">Facepalm</button>+ <button class="feat-anim-pill" data-src="/animations/Standard_Smoking.glb">Smoking</button>+ </div>+ </div>+ </div>++ <a href="/forge" class="btn-primary" style="display:inline-flex;align-items:center;gap:6px;margin-top:20px">+ Generate your own avatar <span class="btn-arrow">→</span>+ </a>+ </div>+ </div>+ </section>+<!-- ════════════════════════════════════CORE — works today, no crypto════════════════════════════════════ -->@@ -281,25 +390,66 @@</article><!-- Widget Studio -->- <article class="feat-card scroll-reveal" aria-label="Widget Studio">- <div class="feat-card-preview feat-card-preview--embed-code">- <div class="feat-code-block" aria-hidden="true">- <div class="feat-code-bar">- <span class="feat-code-dot"></span>- <span class="feat-code-dot"></span>- <span class="feat-code-dot"></span>- <span class="feat-code-label">your-site.html</span>- </div>- <pre- class="feat-code-body"- ><code><span class="feat-c"><!-- 1. load --></span>+ <article class="feat-card feat-card--wide scroll-reveal" aria-label="Widget Studio">+ <div class="feat-card-preview feat-card-preview--embed-live">+ <div class="feat-embed-split">+ <!-- Code side -->+ <div class="feat-embed-code-wrap">+ <div class="feat-code-block">+ <div class="feat-code-bar">+ <span class="feat-code-dot"></span>+ <span class="feat-code-dot"></span>+ <span class="feat-code-dot"></span>+ <span class="feat-code-label">your-site.html</span>+ <button class="feat-copy-btn" id="embedCopyBtn" aria-label="Copy snippet" title="Copy to clipboard">Copy</button>+ </div>+ <pre class="feat-code-body" id="embedSnippet"><code><span class="feat-c"><!-- 1. load --></span><span class="feat-tag"><script</span> <span class="feat-attr">src</span>=<span class="feat-val">"https://three.ws/embed.js"</span><span class="feat-tag">></script></span><span class="feat-c"><!-- 2. drop the tag --></span><span class="feat-tag"><agent-3d</span>- <span class="feat-attr">agent-id</span>=<span class="feat-val">"3DAg…uPL"</span>+ <span class="feat-attr">agent-id</span>=<span class="feat-val">"YOUR_AGENT_ID"</span><span class="feat-attr">kiosk</span><span class="feat-tag">></agent-3d></span></code></pre>+ </div>+ </div>+ <!-- Live widget preview -->+ <div class="feat-embed-preview-wrap" aria-label="Live widget preview">+ <div class="feat-embed-widget-chrome">+ <div class="feat-embed-widget-bar">+ <span class="feat-code-dot"></span>+ <span class="feat-code-dot"></span>+ <span class="feat-code-dot"></span>+ <span class="feat-embed-widget-url">your-site.com</span>+ </div>+ <div class="feat-embed-widget-body">+ <div class="feat-embed-widget-bubble">+ <span class="feat-embed-widget-name">3D Agent</span>+ <model-viewer+ src="/animations/idle_female_jan25.glb"+ auto-rotate+ auto-rotate-delay="0"+ rotation-per-second="16deg"+ interaction-prompt="none"+ camera-controls="false"+ disable-zoom+ shadow-intensity="0"+ exposure="0.85"+ environment-image="neutral"+ camera-orbit="0deg 76deg 4m"+ field-of-view="38deg"+ loading="lazy"+ aria-label="Live widget preview — 3D AI agent"+ ></model-viewer>+ <div class="feat-embed-chat-line">+ <span class="feat-embed-chat-dot feat-embed-chat-dot--1"></span>+ <span class="feat-embed-chat-dot feat-embed-chat-dot--2"></span>+ <span class="feat-embed-chat-dot feat-embed-chat-dot--3"></span>+ </div>+ </div>+ </div>+ </div>+ </div></div></div><div class="feat-card-body">@@ -317,8 +467,8 @@<strong>Why it's better:</strong> No SDK required on the consumerside — one tag, any page, no build step.</p>- <a href="/studio" class="btn-primary feat-card-cta">- Open Widget Studio <span class="btn-arrow">→</span>+ <a href="/embed.html" class="btn-primary feat-card-cta">+ Open Embed Editor <span class="btn-arrow">→</span></a></div></article>@@ -1185,5 +1335,64 @@<script src="/brand.js" defer></script><div id="footer-container"></div><script src="/footer.js"></script>+ <script>+ // Embed snippet copy button+ (function () {+ const btn = document.getElementById('embedCopyBtn');+ if (!btn) return;+ btn.addEventListener('click', function () {+ const snippet = '<script src="https://three.ws/embed.js"><\/script>\n<agent-3d agent-id="YOUR_AGENT_ID" kiosk></agent-3d>';+ navigator.clipboard.writeText(snippet).then(function () {+ btn.textContent = 'Copied!';+ btn.classList.add('copied');+ setTimeout(function () {+ btn.textContent = 'Copy';+ btn.classList.remove('copied');+ }, 2000);+ }).catch(function () {+ btn.textContent = 'Copy';+ });+ });+ })();++ // Animation showcase — pill picker+ (function () {+ const viewer = document.getElementById('animViewer');+ const nowPlaying = document.getElementById('animNowPlaying');+ const pills = document.querySelectorAll('.feat-anim-pill');+ if (!viewer || !pills.length) return;++ function selectAnim(pill) {+ const src = pill.dataset.src;+ if (!src) return;+ pills.forEach((p) => p.classList.remove('feat-anim-pill--active'));+ pill.classList.add('feat-anim-pill--active');+ viewer.setAttribute('src', src);+ const label = pill.textContent.trim();+ if (nowPlaying) nowPlaying.textContent = label;+ }++ pills.forEach((pill) => {+ pill.addEventListener('click', () => selectAnim(pill));+ });++ // Lazy-reveal: trigger model-viewer loading when stage scrolls into view+ const stage = document.getElementById('animStage');+ if (stage && 'IntersectionObserver' in window) {+ const obs = new IntersectionObserver(+ (entries) => {+ if (entries[0].isIntersecting) {+ viewer.setAttribute('reveal', 'auto');+ obs.disconnect();+ }+ },+ { threshold: 0.2 },+ );+ obs.observe(stage);+ } else if (viewer) {+ viewer.setAttribute('reveal', 'auto');+ }+ })();+ </script></body></html>diff --git a/public/features.css b/public/features.cssindex 524712465..ab9a3d57a 100644--- a/public/features.css+++ b/public/features.css@@ -2353,6 +2353,317 @@flex-wrap: wrap;}+/* ── Animation showcase ─────────────────────────────────────────────────────── */++.feat-anim-showcase {+ padding: var(--space-2xl) var(--space-2xl);+ background: linear-gradient(180deg, rgba(99,102,241,.05) 0%, transparent 100%);+ border-top: 1px solid rgba(255,255,255,.06);+ border-bottom: 1px solid rgba(255,255,255,.06);+}++.feat-anim-inner {+ max-width: 1100px;+ margin: 0 auto;+ display: grid;+ grid-template-columns: 340px 1fr;+ gap: 48px;+ align-items: start;+}++.feat-anim-stage {+ position: sticky;+ top: 80px;+ width: 100%;+ height: 420px;+ border-radius: 20px;+ overflow: hidden;+ background: rgba(255,255,255,.03);+ border: 1px solid rgba(255,255,255,.08);+ display: flex;+ flex-direction: column;+}++.feat-anim-stage model-viewer {+ flex: 1;+ width: 100%;+ --progress-bar-color: transparent;+ background: transparent;+}++.feat-anim-stage-overlay {+ position: absolute;+ bottom: 12px;+ left: 0;+ right: 0;+ display: flex;+ justify-content: center;+ pointer-events: none;+}++.feat-anim-now-playing {+ font-size: 11px;+ font-weight: 600;+ letter-spacing: .08em;+ text-transform: uppercase;+ color: rgba(255,255,255,.4);+ background: rgba(0,0,0,.4);+ backdrop-filter: blur(8px);+ padding: 4px 12px;+ border-radius: 20px;+ border: 1px solid rgba(255,255,255,.1);+}++.feat-anim-title {+ font-size: clamp(1.25rem, 2.2vw, 1.65rem);+ font-weight: 800;+ line-height: 1.2;+ color: var(--color-text, #f9fafb);+ margin-bottom: 10px;+}++.feat-anim-sub {+ font-size: 14px;+ color: rgba(255,255,255,.5);+ line-height: 1.6;+ margin-bottom: 24px;+ max-width: 480px;+}++.feat-anim-groups {+ display: flex;+ flex-direction: column;+ gap: 16px;+}++.feat-anim-group {+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.feat-anim-group-label {+ font-size: 10px;+ font-weight: 700;+ letter-spacing: .12em;+ text-transform: uppercase;+ color: rgba(255,255,255,.3);+}++.feat-anim-pills {+ display: flex;+ flex-wrap: wrap;+ gap: 6px;+}++.feat-anim-pill {+ background: rgba(255,255,255,.05);+ border: 1px solid rgba(255,255,255,.1);+ color: rgba(255,255,255,.65);+ font-size: 12px;+ font-weight: 500;+ padding: 5px 12px;+ border-radius: 20px;+ cursor: pointer;+ transition: background .15s, border-color .15s, color .15s, transform .1s;+ font-family: inherit;+ white-space: nowrap;+}++.feat-anim-pill:hover {+ background: rgba(99,102,241,.18);+ border-color: rgba(99,102,241,.5);+ color: #c7d2fe;+}++.feat-anim-pill--active {+ background: rgba(99,102,241,.25);+ border-color: rgba(99,102,241,.7);+ color: #e0e7ff;+ font-weight: 600;+}++.feat-anim-pill:active {+ transform: scale(.95);+}++@media screen and (max-width: 800px) {+ .feat-anim-inner {+ grid-template-columns: 1fr;+ }+ .feat-anim-stage {+ position: static;+ height: 300px;+ }+}++@media screen and (max-width: 480px) {+ .feat-anim-showcase {+ padding: var(--space-xl) var(--space-md);+ }+ .feat-anim-stage {+ height: 260px;+ }+}++/* ── Embed live preview card ─────────────────────────────────────────────────── */++.feat-card-preview--embed-live {+ padding: 0;+ height: auto;+ min-height: 200px;+ overflow: hidden;+}++.feat-embed-split {+ display: grid;+ grid-template-columns: 1fr 1fr;+ height: 220px;+}++.feat-embed-code-wrap {+ padding: var(--space-sm);+ overflow: hidden;+ border-right: 1px solid rgba(255,255,255,.07);+}++.feat-embed-code-wrap .feat-code-block {+ height: 100%;+ display: flex;+ flex-direction: column;+}++.feat-copy-btn {+ margin-left: auto;+ font-size: 10px;+ font-weight: 600;+ letter-spacing: .06em;+ text-transform: uppercase;+ background: rgba(99,102,241,.18);+ border: 1px solid rgba(99,102,241,.35);+ color: #a5b4fc;+ padding: 2px 8px;+ border-radius: 4px;+ cursor: pointer;+ font-family: inherit;+ transition: background .15s, color .15s;+}++.feat-copy-btn:hover {+ background: rgba(99,102,241,.3);+ color: #e0e7ff;+}++.feat-copy-btn.copied {+ background: rgba(74,222,128,.2);+ border-color: rgba(74,222,128,.4);+ color: #86efac;+}++.feat-embed-preview-wrap {+ display: flex;+ align-items: center;+ justify-content: center;+ padding: var(--space-sm);+ background: linear-gradient(135deg, rgba(99,102,241,.04) 0%, transparent 100%);+}++.feat-embed-widget-chrome {+ width: 100%;+ max-width: 200px;+ border-radius: 10px;+ border: 1px solid rgba(255,255,255,.12);+ overflow: hidden;+ box-shadow: 0 4px 24px rgba(0,0,0,.4);+}++.feat-embed-widget-bar {+ display: flex;+ align-items: center;+ gap: 4px;+ padding: 5px 8px;+ background: rgba(255,255,255,.06);+ border-bottom: 1px solid rgba(255,255,255,.07);+}++.feat-embed-widget-url {+ font-size: 9px;+ color: rgba(255,255,255,.3);+ margin-left: 4px;+ letter-spacing: .04em;+}++.feat-embed-widget-body {+ background: rgba(5,5,8,.8);+ padding: 8px;+ display: flex;+ justify-content: flex-end;+}++.feat-embed-widget-bubble {+ width: 80px;+ border-radius: 12px;+ overflow: hidden;+ background: rgba(99,102,241,.12);+ border: 1px solid rgba(99,102,241,.25);+ display: flex;+ flex-direction: column;+ align-items: center;+}++.feat-embed-widget-name {+ font-size: 8px;+ font-weight: 600;+ color: rgba(255,255,255,.4);+ padding: 4px 0 0;+ letter-spacing: .04em;+}++.feat-embed-widget-bubble model-viewer {+ width: 78px;+ height: 78px;+ --progress-bar-color: transparent;+ background: transparent;+}++.feat-embed-chat-line {+ display: flex;+ gap: 4px;+ padding: 6px 0 7px;+ align-items: center;+}++.feat-embed-chat-dot {+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: rgba(165,180,252,.5);+ animation: chat-bounce 1.4s ease-in-out infinite;+}++.feat-embed-chat-dot--1 { animation-delay: 0s; }+.feat-embed-chat-dot--2 { animation-delay: 0.18s; }+.feat-embed-chat-dot--3 { animation-delay: 0.36s; }++@keyframes chat-bounce {+ 0%, 80%, 100% { transform: translateY(0); opacity: .4; }+ 40% { transform: translateY(-3px); opacity: 1; }+}++@media screen and (max-width: 700px) {+ .feat-embed-split {+ grid-template-columns: 1fr;+ height: auto;+ }+ .feat-embed-code-wrap {+ border-right: none;+ border-bottom: 1px solid rgba(255,255,255,.07);+ }+ .feat-embed-preview-wrap {+ padding: var(--space-md);+ }+}+/* ── Responsive ─────────────────────────────────────────────────────────────── */@media screen and (max-width: 900px) {