playground.zilin.im

Playground

AI 时代的 UI/UX 实验室

研究 UI Agent 所需的各种交互效果,以 shadcn/ui 可安装形式维护与分发。

21 DemosFramer Motionshadcn/ui
Dynamic Island

iOS Dynamic Island — 12 interaction states with Framer Motion spring physics.

Framer MotioniOS
Notification Stack

macOS-style glass-morphism notification stack with configurable spring presets.

Framer MotionGlass
Share Dialog

Multi-state share modal with public / access-code modes and layout animations.

Framer Motion
List Animation

Configurable spring list with top-insert enter effects and preset switching.

Framer Motion
Chat TOC · 时间线高亮

TOC 方案探索:左侧时间线轨道 + H2 索引 + 选文高亮标记,可点击跳转。

TOCFramer Motion
Chat TOC · 缩略线导航

TOC 方案探索:右侧缩略线面板以 IntersectionObserver 同步当前阅读位置。

TOCIntersectionObserver
Sync Button

Three variants of an animated sync / loading button — Framer Motion & pure CSS.

CSS Animation
$
×
$
Stock Calculator

USD / CNY P&L calculator with buy, sell, and target-price inputs.

Utility
$544▲ 2.66%SNDK
Stock Dashboard

纯 SVG 实现的股价 dashboard:区域线图 / 蜡烛图切换,OHLC tooltip。

SVGChart
Mobile Fullscreen

Feature-detection based viewport-height adaptation for mobile browsers.

Mobile
Floating Dock

iOS-style glassmorphism bottom navigation bar with animated active indicator.

Framer MotioniOS
Generating component…
Reading project filesApplying edits
Shimmer Text

Cursor-style 文本闪光:基色 + 一道窄高光循环穿过,暗示 agent 正在执行。

CSS AnimationAgent
Border Beam

光束沿圆角描边匀速绕行:CSS offset-path + mask-composite 实现,含 5 种用法。

CSS AnimationFramer Motion
Scan Border

iOS 18 Siri 同款边缘光晕:旋转 conic 彩虹 + glow / ring 双层 + 4 边等宽 mask。

CSS AnimationAgent
OHLC + VOL▲ 1.84%
LWC · Candle + Volume

lightweight-charts 双 pane:蜡烛图 + 共享时间轴的成交量直方图,crosshair 联动 OHLC legend。

lightweight-chartsChart
AREA · GRADIENT
$642.18
LWC · Area Glow

TradingView 首页 hero 风格:渐变 Area + 4 套主题色 + visibleRange 切换的时段选择器。

lightweight-chartsChart
BASELINE · P&L
+12.4%
LWC · Baseline P&L

BaselineSeries:基准线上方绿、下方红,拖动 slider 实时改变 cost basis 重新着色。

lightweight-chartsChart
LIVE · 1S
$258.32
LWC · Live Stream

实时 tick 流:series.update() 增量渲染,可暂停 / 调速,演示 lightweight-charts 的高性能流式更新。

lightweight-chartsChart
TERMINAL · L2$248.50
248.6549
248.6070
248.5598
248.50126
248.4584
▲248.450.05
248.40112
248.3570
248.3049
248.2535
248.2025
LWC · Trading Terminal

完整交易终端布局:蜡烛 + 布林带 / Volume / MACD 三 pane,右侧实时 L2 订单簿 + 成交流水。

lightweight-chartsChartRealtime
12011010090
118.4
Liveline

复刻 benji.org/liveline 排版的单页:用 liveline 库内嵌 4 个实时折线 demo(心率 / CPU / 多 series / 压力测试)。

livelineChartRealtime
复现 Claude 的回答排版
正文 16px,行高 1.5。行内代码用 rgb(141,37,37) 暗红字。
标题 mb -4px,列表用 flex gap …
--md-text: rgb(18,18,18);
--md-bg-pre: rgba(255,255,255,.5);
p · h2 · pre · table1:1 抓自 claude.ai
Claude Chat Style

1:1 抓取 claude.ai 计算样式还原成 ~280 行 CSS,用一篇博客示范 h1–h4 / 列表 / 代码块 / 表格 / 引用。

MarkdownTypography