Edge-Narrowing Card Scroll with Floating Tab Bar
A quests screen of six large photo cards and seven small ones scrolls on a recorded 16-second loop. Cards narrow by up to 10px per side near the top and bottom and fade through a soft mask, above a static glass tab bar. Plain React Native views, shared core.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "edge-narrowing-card-scroll-tab-bar" to this project. The full source is attached at the end of this prompt. Put the files under components/edge-narrowing-card-scroll-tab-bar/, 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 ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 22 Sep 2026
- License
- Unlimited commercial projects
- Original design
- 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 light-themed scrolling screen of large photo cards with serif titles, followed by a run of smaller thumbnail cards. As each card nears the top or bottom edge of the screen its sides narrow slightly, up to about ten source pixels on each side, and its content fades under a soft mask near the edges, so the list looks like it curls away from the viewer. A bottom pill-shaped tab bar has a selected capsule and a separate round button. Scrolling replays a scripted run of flicks and stops, including a fast fling and a catch, rather than following only a finger.
How it's built
A shared pure module holds the card layout, a scroll table fitted frame by frame to the reference, the edge-narrowing function and the fade mask. The React Native component renders only views, Text and Image, scaled to the requested width, and advances through the table on a requestAnimationFrame loop with a frozen-time option. Photos are bundled stand-in images with live text on top. The serif title font is loaded by the host app. There are no native modules or animation libraries.
Good for
- A long editorial or discovery list where the cards need depth cues near the edges
- A home feed of large cards followed by a compact list
- A scroll-linked effect that needs no gesture library
Dependencies
react-native