Now In Code

金环扫光的升级揭晓

黑场里琥珀与粉紫光柱亮起,LEVEL UP 字距收拢并对焦。头像以弹簧放大,火花沿金环转一圈,随后闪白并扩散暖色冲击波与星尘。OG 弹簧缩回,分隔线向外生长,三张权益卡浮起,最后 Continue 弹入。

灵感来自 @jasonnfonsecaa 在 X 上发布的设计由 Now In Code 从零重建

Agent 提示词

Add the Now In Code component "gold-ring-sweep-level-up-reveal" to this project.

The full source is attached at the end of this prompt. Put the files under components/gold-ring-sweep-level-up-reveal/, 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月27日
许可证
无限商业项目
原始设计
@jasonnfonsecaa(X)

你是设计者吗? 请求我们修改或下架此作品.

CLI 与 MCP 服务器 即将推出

在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档

功能说明

全屏升级页面,黑色底。从黑场硬切入后,光晕和冲击波在背景中展开,圆形头像周围有金色环,四角星向四周散开。依次出现:“LEVEL UP”标题、一行宣布新等级的文字及简短的等级徽章,然后是“New perks”分隔线;三张权益卡片依次逐个叠入。底部按钮扫过一道粉紫色的斜向光带。动画播放一次,之后从黑场重新循环。

实现方式

共享核心根据时间轴生成显示列表,列表只使用七种操作类型:径向渐变、圆环、带阴影的圆环、圆弧、圆、图像和四角星。在 React Native 中,每一帧把这些操作录制到 Skia Picture 中,光效使用叠加混合,金属环使用扫描渐变,圆弧则用短线段近似。文字和权益卡片是普通视图,填充使用 expo-linear-gradient,字体使用 expo-font,图标使用 react-native-svg。requestAnimationFrame 循环驱动时间。

适用场景

  • 游戏或会员应用中的升级、等级提升或成就界面
  • 主要元素之后接交错排列列表的奖励汇总页面
  • 需要在网页和原生端外观完全一致的渐变和圆环效果

依赖

@shopify/react-native-skiaexpo-fontexpo-linear-gradientreact-native-svgreact-native

标签

头像按钮卡片交叉淡化深色展开收起金融钱包流体光效辉光渐变图标加载动画品牌营销形变霓虹科技粒子拟物3D社交弹簧错峰入场状态切换

相关作品