Skip to content

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.

feat: integrate rippleOnce function from ui-juice for enhanced UI interactions in character creator and launch detail

qbdz3dc0a2474de0
diff --git a/pages/create-character.html b/pages/create-character.html
index c5f991fbc..54334761b 100644
--- a/pages/create-character.html
+++ b/pages/create-character.html
@@ -23,6 +23,7 @@
<meta property="og:image" content="https://three.ws/og-image.png" />
<link rel="canonical" href="https://three.ws/create/character" />
+ <link rel="stylesheet" href="/src/ui-juice.css" />
<link rel="stylesheet" href="/src/character-creator.css" />
</head>
<body>
diff --git a/src/character-creator.js b/src/character-creator.js
index d635eba80..06dc911aa 100644
--- a/src/character-creator.js
+++ b/src/character-creator.js
@@ -30,6 +30,7 @@ import {
import { setPlayAvatar, setPlayName, setPlayCosmetics, playAs, getPlayAvatar } from './game/play-handoff.js';
import { purchaseCosmetic, fetchOwnedCosmetics, resolveShopAccount } from './game/cosmetics-purchase.js';
import { log } from './shared/log.js';
+import { rippleOnce } from './ui-juice.js';
const $ = (id) => document.getElementById(id);
@@ -214,6 +215,12 @@ class CharacterCreator {
veil.hidden = !msg || state === 'loading' ? false : true;
veil.classList.toggle('cc-veil--spin', state === 'loading');
veil.classList.toggle('cc-veil--error', state === 'error' || state === 'fallback');
+ // Real success beat — a single accent ripple the first time an avatar
+ // actually finishes loading onto the stage (not on every idle re-render).
+ if (state === 'ready' && this._lastStageState && this._lastStageState !== 'ready') {
+ rippleOnce(stage);
+ }
+ this._lastStageState = state;
}
// ── Wardrobe ────────────────────────────────────────────────────────────────
diff --git a/src/first-meet.js b/src/first-meet.js
index 41da5ab8d..50349355a 100644
--- a/src/first-meet.js
+++ b/src/first-meet.js
@@ -186,9 +186,11 @@ export async function playFirstMeet({ viewer, agent, onShare, onContinue }) {
await delay(800);
spawnConfetti();
- // t=2.2 — buttons fade in
+ // t=2.2 — buttons fade in, with a single restrained accent ripple as the
+ // shared "it's done" beat (reduced-motion → no-op, handled inside rippleOnce).
await delay(800);
actions.classList.add('fm-visible');
+ rippleOnce(actions);
// ── Wait for user ─────────────────────────────────────────────────────────
diff --git a/src/launch-detail.js b/src/launch-detail.js
index 2cedbe597..454f52116 100644
--- a/src/launch-detail.js
+++ b/src/launch-detail.js
@@ -38,6 +38,7 @@ import {
import { walletChipEl } from './shared/agent-wallet-chip.js';
import { agentAvatarGlb, hasCustomAvatar, seeInWorldHref } from './shared/agent-3d.js';
import { resolveDevR2Url } from './shared/dev-r2-proxy.js';
+import { flashValue, rippleOnce, liveDot, setLiveDot } from './ui-juice.js';
const GRADUATION_CAP_USD = 69_000; // pump.fun bonding-curve graduation threshold
const REDUCED_MOTION = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
@@ -428,8 +429,8 @@ function renderHero() {
]);
const stats = el('dl', { class: 'ld-hero-stats' }, [
- stat('Price', fmtPrice(price)),
- stat('Market cap', fmtMcap(mcap)),
+ stat('Price', fmtPrice(price), 'ld-stat-price'),
+ stat('Market cap', fmtMcap(mcap), 'ld-stat-mcap'),
stat('24h volume', fmtMcap(Number(coin?.volume_24h ?? coin?.volume24h))),
stat('Total supply', supply != null ? compact(supply) : '—'),
stat('Launched', reg?.created_at || intel?.created_at ? relTime(reg?.created_at || intel?.created_at) : '—'),
@@ -1592,6 +1593,9 @@ function pushTrade(listEl, t) {
const row = tapeRow(t);
if (!REDUCED_MOTION) row.classList.add('ld-trade-in');
listEl.insertBefore(row, listEl.firstChild);
+ // Directional tint pulse on the freshest trade — buys read success-green, sells
+ // danger-red, matching the swarms feed vocabulary on top of the slide-in.
+ flashValue(row, row.classList.contains('ld-buy') ? 'up' : 'down');
while (listEl.children.length > 24) listEl.removeChild(listEl.lastChild);
}
@@ -1617,8 +1621,7 @@ function startTape(listEl, dot) {
let closed = false;
const setLive = (live) => {
- dot.classList.toggle('ld-live-on', live);
- dot.title = live ? 'Live' : 'Reconnecting…';
+ setLiveDot(dot, live ? 'live' : 'connecting', live ? 'live' : 'reconnecting');
};
const connect = () => {