Sticky Section Headers with Progressive Blur
Scrolling pins each section header under the top controls while rows that pass are covered by a blur that strengthens toward the top. Mobile uses a native ScrollView with expo-blur and MaskedView; an HTML version is included.
// Sign in to see the source. Free pieces need a free account.
Agent prompt
Add the Now In Code component "sticky-section-headers-with-progressive-blur" to this project. The full source is attached at the end of this prompt. Put the files under components/sticky-section-headers-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. === Sign in to attach the source files ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Free
- Updated
- 11 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @leon7hao on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A conversation list for an AI coding assistant on a white screen. Two glass pills sit at the top, one for switching workspace and one for search and filter. Below them the list is split into groups such as pinned, needs attention and recently finished, with child conversations connected by tree lines. Scrolling up pins the current group title under the pills. Rows that pass beneath the title are covered by a progressive blur with a faint white wash. When the next group arrives, it pushes the old title away; the old title turns blurry and fades under the blur layer. A glass tab bar with a round new-item button sits at the bottom. Overscroll at the top bounces back.
How it's built
A shared JavaScript core holds the row data, the measured layout and the scroll tables. The component is plain React Native: a ScrollView, a native blur view revealed through a gradient mask, linear gradients and react-native-svg for icons and tree lines. Each group title is drawn twice, a sharp copy above the blur layer and a blurred copy below it, and their opacity swaps as scroll position moves. Scrolling is driven by gestures with inertia and a damped return at the edges, and a demo mode replays recorded scroll offsets. The blur is one layer with a gradient mask, not a stack of blur strengths.
Good for
- Chat or inbox lists with grouped sections under a floating toolbar
- Any scrolling screen where content should dissolve under pinned chrome
- Project or task lists that show nested items with tree lines
Dependencies
expo-blurexpo-linear-gradient@react-native-masked-view/masked-viewreact-native-svgreact-native