带弹簧分段标签的音乐 App 套件
深色音乐首页含快捷卡与玻璃分段胶囊:白色滑块以临界阻尼弹簧移动,文字颜色按滑块覆盖率插值。三个 Tab 带 14pt 横移交叉淡化成可横滑内容,底部有分层渐进模糊与迷你播放器。
灵感来自 @keremcesme 在 X 上发布的设计由 Now In Code 从零重建
import { App } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "music-app-kit-spring-segmented-tabs" to this project. The full source is attached at the end of this prompt. Put the files under components/music-app-kit-spring-segmented-tabs/, 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月17日
- 许可证
- 无限商业项目
- 原始设计
- @keremcesme(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个深色的音乐首页,顶部是大号的 Home 标题和头像,下面是八张半透明的快捷入口卡片。其下是一个磨砂的分段药丸控件,包含三个标签。一个白色滑块带着弹簧在它们之间移动,每个标签文字根据滑块覆盖的比例在灰白与黑色之间变化。标签内容以轻微的横向位移交叉淡入:一排渐变的歌单卡片、一排大封面卡片(标签为 album、playlist 和 single),以及一组白色的电台标志网格。靠近底部的内容在深色磨砂标签栏和浅色迷你播放器下方逐渐模糊。
实现方式
共享核心根据一条点击时间线计算每一帧。滑块是临界阻尼弹簧,离开的内容先淡出,进入的内容稍后跟上。React Native 组件用 expo-blur 实现磨砂层,用 expo-linear-gradient 和遮罩视图实现渐变渐隐以及底部的渐进模糊,用 react-native-svg 绘制标志和图标。requestAnimationFrame 循环推进动画,ScrollView 负责滚动。
适用场景
- 带分段浏览的音乐、播客或电台应用首页
- 任何磨砂分段控件,其文字颜色随滑块位置变化
- 在浮动标签栏和迷你播放器后方的底部模糊渐隐
依赖
@react-native-masked-view/masked-viewexpo-blurexpo-fontexpo-linear-gradientreact-native-svgreact-native标签
模糊过渡卡片深色渐变播放器音乐音频滚动驱动弹簧标签栏标签页