3D 物件漂浮的登录页
一圈 3D 物件按错峰弹簧落在程序化云天上,之后各自沿缓慢的正弦路径漂浮,围绕登录按钮上方的发光徽章。弹簧和漂浮曲线按原片拟合,用 Skia 和 SVG 渲染。
灵感来自 @BreejeAnadkat 在 X 上发布的设计由 Now In Code 从零重建
import { 3D } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "floating-3d-objects-sign-in" to this project. The full source is attached at the end of this prompt. Put the files under components/floating-3d-objects-sign-in/, 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 年 11 月 24 日
- 许可证
- 无限商业项目
- 原始设计
- @BreejeAnadkat(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个有趣的登录界面,背景是程序生成的天空,其中有三朵缓缓漂移的云。十个插画物件(汉堡、守门员手套、纸飞机、面条碗、票、卡片、球门、足球、咖啡杯和运动鞋)从最近的屏幕边缘交错弹入,然后在原位缓慢漂浮。中间一个磨砂圆形徽章带着过冲弹出,并约每 3.5 秒向外扩散一圈波纹。三行标题依次上升淡入,随后是 Google 和 Apple 按钮。组件接受两个按钮的回调,以及用于静止画面的冻结时间 prop。
实现方式
天空是 Skia 画布上的一个 SkSL 运行时着色器,云是几个向左漂移的柔和斑点。共享核心文件保存整个时间线、着色器源码和矢量字形。每个物件都有自己的入场弹簧、起始偏移、起始时间、频率和阻尼,然后在每个轴上叠加带有各自周期和振幅的正弦漂浮。徽章图标、波纹和按钮使用 react-native-svg 和普通 View,requestAnimationFrame 循环提供时间。物件图像是随屏幕打包的光栅图片。
适用场景
- 游戏、体育或娱乐应用的登录或欢迎页面
- 许多物件先飞入再静止漂浮的任何首屏
- 逐个物件弹簧入场和缓慢环境漂浮的参考实现
依赖
@shopify/react-native-skiareact-native-svgreact-native标签
3D 物体飞入飞出游戏娱乐引导页物理模拟彩色活泼登录注册拟物3D弹簧