折射扫光 AI 旅行助手
白灰界面的旅行助手把颜色留给照片。开场折射光带自下而上扫过,以彩虹边把内容推开,航班卡随光带滑入。点航班卡展开详情页,再变为带 AI 文字的迷你卡。
灵感来自 @ianneo_ai 在 X 上发布的设计由 Now In Code 从零重建
import { AI } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "refraction-sweep-ai-travel-assistant" to this project. The full source is attached at the end of this prompt. Put the files under components/refraction-sweep-ai-travel-assistant/, 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
- 依赖
- Expo SDK 54+
- 权限
- Pro
- 更新于
- 2026年10月28日
- 许可证
- 无限商业项目
- 原始设计
- @ianneo_ai(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一款旅行助手应用,启动时有一道水平的折射光带从屏幕中部向上移动。光带附近的内容分裂出红色和蓝色边缘,变得模糊,并被推离光带中心,同时白色高光掠过,柔和的彩虹光晕在首页背后漂移。随后流程经过九个屏幕:一张航班卡片变形为详情页;带有逐词发光 AI 文字和打字键盘的聊天;带有不断生长的网格和珍珠状光球的思考状态;带有光泽扫过的推荐卡片;逐步加载的照片网格;全屏照片页;带有路线的地图;以及带新卡片返回首页。
实现方式
效果是以 Skia 运行时效果编译的 SkSL 片段着色器,绘制在 Skia 画布上:一个用于光晕,一个用于镜头式折射。JavaScript 核心保存时间线和所有绘制代码,每个平台上的薄适配器从 requestAnimationFrame 循环向其提供帧。Skia 是唯一的运行时依赖,因此屏幕间的共享元素放大、点阵图案和渐变都在画布上绘制,而不是作为原生视图布局。
适用场景
- 首次启动或主视觉时刻,光带扫过已有内容
- 逐词流式输出并带有发光效果的 AI 助手流程
- 从卡片过渡到详情页和地图的旅行与行程规划应用
依赖
@shopify/react-native-skiareactreact-native标签
AI 助手头像按钮卡片情感陪伴交叉淡化展开收起金融钱包飞入飞出渐变首页键盘浅色液态玻璃加载动画地图极简形变彩色活泼转场搜索栏弹簧文字动画输入框出行旅行