整页模糊的快捷操作菜单
点圆形加号按钮,看板 0.38 秒内模糊,按钮转成关闭图标,四张磨砂操作卡从左到右落下,由糊变清;悬停卡变不透明。使用 SkSL,网页用 CanvasKit,RN 用 Skia。
灵感来自 @sonia_axion 在 X 上发布的设计由 Now In Code 从零重建
import { Piece } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "blur-out-quick-actions-menu" to this project. The full source is attached at the end of this prompt. Put the files under components/blur-out-quick-actions-menu/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Pro 作品。提示词包含完整源码。开始使用
详情
- 平台
- iOS、Android、Web
- 依赖
- Expo SDK 54+
- 权限
- Pro
- 更新于
- 2026年11月20日
- 许可证
- 无限商业项目
- 原始设计
- @sonia_axion(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一张浅色桌面仪表盘的特写,右上角有一个圆形加号按钮。点击加号后,整个页面模糊并褪色,按钮变为黑色并旋转成叉号,四张磨砂的操作卡片从左到右依次落下:追讨逾期款、提供套餐、新建发票、询问助手。鼠标悬停的卡片变为不透明白色,略微放大并带有阴影。点击叉号后,卡片从右到左向上飘走,页面重新变清晰。演示模式会重放一段录制的光标路径,交互模式则接收真实输入。
实现方式
所有内容都由 Skia 绘制。共享核心定义场景、打开、悬停和关闭的补间动画、命中测试,以及演示回放;回放会从零开始重新模拟,因此任意时刻都可以确定性地冻结。组件在 requestAnimationFrame 循环中用 PictureRecorder 记录每一帧,并在最后一个事件之后停止。页面模糊使用带模糊图像滤镜的图层,每张卡片有自己的透明度和模糊图层,落定时逐渐变清晰。背后的仪表盘由矢量图形构成,颜色场经过拟合,字形纹理基于着色器。
适用场景
- 桌面风格仪表盘上的快捷操作或新建菜单
- 背后页面应模糊而非变暗的模态菜单
- 只需展示少数高频操作的开票或 CRM 工具
依赖
@shopify/react-native-skiareact-native标签
模糊过渡按钮卡片展开收起菜单形变按压反馈习惯效率错峰入场状态切换