拟物贴纸打印创建流程
确认后的照片以小拍立得的形式落下并滑入机器,辉光与蒸汽升起,异形贴纸从出纸口出来。随后在更大的展示区切换五种表面效果,再被剥下。自动播放,直到按下按钮。
灵感来自 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 "skeuomorphic-sticker-printing-flow" to this project. The full source is attached at the end of this prompt. Put the files under components/skeuomorphic-sticker-printing-flow/, 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 作品。提示词包含完整源码。开始使用
详情
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个深色的手机流程,用于把照片变成贴纸。先是一个面板,让用户选择或确认照片。之后,一台卡通贴纸机占满屏幕,主体被送入一张纸,蒸汽喷出,打印好的贴纸出来。接着是结果页面,然后是五种贴纸表面的轮播,分别是全息、闪粉、金色、银色和哑光,自动播放中会切换三次。点按可以撕下贴纸,“Make another”按钮会换入第二个主体。预览会自行播放,第一次点按后切换为手动控制。
实现方式
共享 JavaScript 核心是布局常量、时间线函数、点按处理器、自动播放导演以及程序化蒸汽的唯一来源,同时包含矢量箭头和坞站图标。React Native 组件用 react-native-svg 和普通视图绘制全部内容,由 requestAnimationFrame 时钟驱动,不使用 Reanimated,也不使用 SVG 以外的原生模块。蒸汽是带火花的柔和斑点集合。贴纸表面是预先渲染好的图像材质,叠加在带白边的抠图之上。
适用场景
- 照片转贴纸或头像创建的创意或即时通讯应用流程
- 每个阶段都是一个短场景的多步骤向导
- 有趣的导出或打印确认页面
依赖
react-native-svgreact-native标签
头像按钮卡片轮播深色设计工具拖拽电商购物流体光效辉光图标极简形变拟物3D状态切换系统界面