Now In Code
Get access

Swipe Card Stack and Coverflow

In the stack, the front card tilts with the finger and is flung away past 96pt or a quick flick, then the cards behind step forward. In the coverflow, side cards curve toward you in perspective, one page per 160pt, with rubber-band ends.

Inspired by a design by @liaquiqui on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "swipe-card-stack-and-coverflow" to this project.

The full source is attached at the end of this prompt. Put the files under components/swipe-card-stack-and-coverflow/, 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 piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
26 Oct 2026
License
Unlimited commercial projects
Original design
@liaquiqui on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

Two prototypes of a card wallet, shown on two phones. In the stack, payment cards in several colours sit one behind another with only a thin edge of the next three showing. Dragging the front card makes it follow the finger with a slight tilt, and a quick throw sends it off the left edge with extra rotation before it returns to the back of the pile. The cards behind move forward as the front card moves, and a fourth edge fades in. In the coverflow, the cards sit in a horizontal row with the centre one large and the rest turned and scaled back. Dragging pages through them, and pulling past either end rubber-bands. Card faces show a chip, number lines and a holder name.

How it's built

A shared JavaScript core holds the card geometry, the physics for dragging and throwing, and the scripted demo. The React Native file exports a stack component, a coverflow component and a card face component, rendered with react-native-svg and ordinary transforms. The stack uses a scale of about one minus 0.077 per layer, and the throw follows an exponential approach to an off-screen point. Dragging uses touch handling from React Native itself. Time comes from a requestAnimationFrame loop. No physics library or Reanimated is used.

Good for

  • A payment card or loyalty pass wallet
  • Swipeable stacks for browsing offers, tickets or saved items
  • Horizontal pickers where the centre item should dominate

Dependencies

react-native-svgreact-native

Tags

3D RotationCardCard StackDragFintech and WalletGradientLight ModeMembership CardMinimalPhysics SimulationScreen TransitionSkeuomorphic 3DSpring PhysicsSwipe Gesture

Related