Now In Code
Get access

Edge Lens Gradient Carousel

Three screens: round gradient windows that hop and stretch into comet tails near card edges, a translucent glass ribbon that keeps folding, and an export carousel with fixed lens edges. All grainy gradients are SkSL on CanvasKit and Skia.

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

Agent prompt

Add the Now In Code component "edge-lens-gradient-carousel" to this project.

The full source is attached at the end of this prompt. Put the files under components/edge-lens-gradient-carousel/, 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
18 Nov 2026
License
Unlimited commercial projects
Original design
@basit_designs 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

Three phone screens from one asset-browsing app flow: a home list, a collection detail and an export-success screen. Only three regions move. On the home screen, three circular gradient windows sit on the right of the first card and teleport vertically. As they near the card's top or bottom edge they stretch into a comet-like tail with cyan colour fringing. In the second card a translucent glass ribbon keeps folding over. On the final screen a carousel of gradient cards slides sideways, and at each end the cards bend outward with an iridescent edge. The detail screen has a static procedural gradient background. Everything else is ordinary light-themed UI: cards, icons and dark buttons.

How it's built

A shared core file holds the timeline, layout, four SkSL shaders (wallpaper, horizontal lens, vertical lens, detail background), the ribbon mesh and a renderer written against a small adapter interface. One adapter targets CanvasKit for the browser and another targets React Native Skia. Each frame the carousel or conveyor layout is recorded as a Skia picture, turned into a picture shader and sampled as a child by the lens shader, which separates colour channels at the edge. The ribbon is a vertices mesh. In React Native the animated canvas records its picture on the JS thread and hands it over through a Reanimated shared value, so React does not re-render.

Good for

  • Asset, wallpaper or palette libraries that preview gradients as cards
  • Carousels where the edge items should distort like a lens
  • Export or success screens with a moving glass ribbon

Dependencies

@shopify/react-native-skiareact-native-reanimatedreact-native-svg

Tags

CardCarouselChromatic AberrationFluid MotionGradientGrain TextureHome ScreenLight ModeLiquid GlassShader

Related