无限滚动的极简小组件墙
浅灰底配红色柔光,4 列 204px 白色小组件卡交替上下匀速滚动,每 16 秒循环一次。22 种卡片包括计时环、天气、电量、点阵图表、时钟与心跳。
灵感来自 @seanaiux 在 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 "infinite-scroll-minimal-widget-wall" to this project. The full source is attached at the end of this prompt. Put the files under components/infinite-scroll-minimal-widget-wall/, 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月22日
- 许可证
- 无限商业项目
- 原始设计
- @seanaiux(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
浅灰色画布上有四列小型白色小组件卡片,各列以各自稳定的速度交替方向无限滚动。共有二十二种卡片,包括计时器、天气、音乐、电池、网络、步数、时钟、日历、专注、睡眠、心率、饮水、空气质量、恒温器和指南针。每张卡片内部都有自己的小动效。画布左上方有柔和的白色光源,右侧有红色光晕。循环没有接缝,因为每一列都在整数个卡片高度后重复。
实现方式
共享核心保存布局常量、各列的滚动偏移、帧函数,以及 22 张卡片各自的显示列表,列表由五种基本元素构成:rect、circle、path、text 和 group,并支持变换、裁剪和不透明度。React Native 组件只是这个列表的渲染器,使用 react-native-svg,由 requestAnimationFrame 循环驱动,字体由 expo-font 加载。没有采用常见的跑马灯方案,因为 CSS 定时动画无法让每一列拥有各自实测的周期。
适用场景
- 一次展示大量迷你小组件的落地页或营销屏幕
- 主屏幕小组件图库或锁屏效果的模拟图
- 需要平静而持续运动纹理的空状态或背景界面
依赖
expo-fontreact-native-svgreact-native标签
卡片网格健康健身首页浅色品牌营销极简滚动驱动系统界面计时器