波浪章弹出、对勾描画与迸发
蓝色 12 瓣波浪章带旋转弹出,白色对勾画出,徽章鼓到 1.08 倍后回弹,迸出两道细圆环和十颗圆点向外飞散并缩小。点击重播,可拖时间轴与 0.25× 慢放。
灵感来自 @lexav__ 在 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 "wavy-seal-pop-check-stroke-burst" to this project. The full source is attached at the end of this prompt. Put the files under components/wavy-seal-pop-check-stroke-burst/, 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月11日
- 许可证
- 无限商业项目
- 原始设计
- @lexav__(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个蓝色背景的画面,中央是白色的十二瓣波浪形印章。印章淡入并以小幅过冲弹出,同时从偏移的角度旋转回正。一个与背景同为蓝色的对勾从左端的一个点开始绘制,起步缓慢,结束时加速。当笔画约完成七成时,印章略微膨胀,随后回弹,两个白色圆环和十个亮暗交替的圆点向外射出并逐渐淡去。整个序列约两秒,最后停在静止的徽章上。点按预览可以重新播放。
实现方式
全部是普通 SVG。共享 JavaScript 核心提供一个关于时间的纯函数,返回绝对几何数据:已缩放并旋转好的 288 点印章轮廓、对勾折线、圆环半径和不透明度,以及圆点位置。它不使用 SVG 变换,从而避免不同 SVG 后端之间的差异。requestAnimationFrame 循环每帧调用该函数,并用 react-native-svg 渲染约十五个节点。印章轮廓是围绕圆的正弦波。动效使用阻尼弹簧、指数衰减和三次贝塞尔缓动,每一项都依据实测帧数拟合。
适用场景
- 资料填写或支付步骤之后的已验证、成功或成就徽章
- 无需图片素材即可完成的庆祝性确认效果
- 学习如何在同一序列中组合弹簧、笔画绘制和扩散圆环
依赖
react-native-svgreact-native标签
徽章奖章极简粒子路径描绘涟漪旋转社交弹簧