方格明灭 Features 区块
四张功能卡里的灰色小方格沿对角线依次变亮,旁边的图片卡上白格随机闪烁。版式保持静态,一个纯函数 frame(t) 同时驱动网页和 React Native 版本。
灵感来自 @kevserctk 在 X 上发布的设计由 Now In Code 从零重建
import { Features } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "flicker-grid-features-section" to this project. The full source is attached at the end of this prompt. Put the files under components/flicker-grid-features-section/, 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 作品。提示词包含完整源码。开始使用
详情
- 平台
- Web
- 依赖
- Expo SDK 54+
- 权限
- Pro
- 更新于
- 2026 年 11 月 24 日
- 许可证
- 无限商业项目
- 原始设计
- @kevserctk(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个浅色营销区块,带有细的参考线、小标签、黑灰两色的两行标题、深色的“Try for free”按钮、2×2 排列的四张功能卡片,以及右侧带白色文字和“Learn more”按钮的高图片卡片。网格单元内有两层动效。在功能卡片中,一组灰色方块的对角波浪淡入淡出,从右上向左下移动,并一张接一张地依次开始。在图片卡片上,一片细白色网格单元随机闪烁,底部最亮,向顶部逐渐淡出。循环每五秒重复一次。其余部分为静态。
实现方式
一个小型共享核心暴露一个时间的纯函数,返回每个单元的状态。功能卡片中的方块从右边缘按固定的 75 点网格放置。每个方块的脉冲延迟随其行和列增加,因此波浪呈对角方向传播,卡片的开始时间也错开。图片卡片的闪烁是确定性的哈希调度,因此每个单元都有自己的周期、相位、持续时间和峰值,同时大约有六到七个单元同时点亮。组件用普通 View 和 react-native-svg 渲染,边缘渐隐使用 expo-linear-gradient,时间由 requestAnimationFrame 循环提供。
适用场景
- 产品落地页的功能或优势板块
- 需要安静动效的首屏或定价卡片背景纹理
- 无需逐个单元动画值即可为大量小单元做动画的图案
依赖
expo-linear-gradientreact-native-svgreact-native标签
按钮卡片工作协作光效辉光图标浅色品牌营销极简揭示