带渐进模糊的滑动引导页
每页是全屏插画,向底部渐进模糊并压暗,其上有标题、说明、分页药丸、Sign Up 和 Login。左右拖动时插画与文案一起滑动。React Native 用分页 ScrollView 加 MaskedView。
灵感来自 @ayodeleee_ 在 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 "swipe-onboarding-with-progressive-blur" to this project. The full source is attached at the end of this prompt. Put the files under components/swipe-onboarding-with-progressive-blur/, 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月11日
- 许可证
- 无限商业项目
- 原始设计
- @ayodeleee_(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个三页的引导流程,用于 AI 图像应用,每页都是全屏的超现实插图。页面下方靠低的位置有粗体的两行标题和两行说明文字,顶部有 logo,另有三点页面指示器、大号白色 Sign Up 按钮和带下划线的 Login 链接。左右滑动时,插画和文字从一页切换到下一页,而 logo、页面指示器和按钮保持不动。页面指示器的当前点会拉长为胶囊形,并跟随拖动位置移动。页面也会每隔几秒自动前进,插画下半部分在文字下方逐步模糊。
实现方式
每张插画都提供两个版本:清晰版和预先模糊版,因为笔记中发现实时模糊视图无法在各平台上保持一致。MaskedView 配合线性渐变混合这两层,使模糊从中部向底边逐渐增强,文字下方还有一层深色渐变。共享 JavaScript 核心定义布局、文案,以及一个纯函数,将连续的页面位置映射为页面指示器的点宽度和不透明度。React Native 版本使用分页 ScrollView、expo-linear-gradient,并通过 expo-font 加载自定义标题字体。按下时按钮缩放,链接则淡化。
适用场景
- 全出血艺术图片的创意或 AI 应用引导轮播
- 必须在多变图片上保持可读的文字
- 指示器随拖动连续跟随的页面指示器
依赖
@react-native-masked-view/masked-viewexpo-linear-gradientexpo-fontreact-native-svgreact-native标签
AI 助手模糊过渡按钮轮播深色设计工具渐变插画形变引导页按压反馈登录注册滑动手势