Radial Dashed Lines with Moire Center
Small black squares scattered on warm paper each send a fine dashed line to the center, where the phase-aligned dashes stack into concentric moire rings. A Swiss-style graphic for showing many inputs feeding one goal, with restrained motion added on top.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "radial-dashed-lines-moire" to this project. The full source is attached at the end of this prompt. Put the files under components/radial-dashed-lines-moire/, 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, Web
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 18 Nov 2026
- License
- Unlimited commercial projects
- Original design
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 square Swiss-style information graphic on warm light gray paper. Eighty-nine small black squares are spread in bands across the sheet, and each is joined to the exact center by a thin dashed line. The target of concentric rings in the middle is not drawn. It appears where all the dashes line up on the same phase and overlap into a moire. Four small captions in a grotesque face sit at the corners and bottom. On load the labels rise in, the squares grow in order from the far ones to the near ones, and the dashed lines extend toward the center. Then the dashes flow inward, so the rings slowly contract, and a thin ring pulses inward every few seconds. Hovering or tapping a square highlights its line and dims the rest.
How it's built
Every line is an individual SVG line with a dash pattern of four points and a phase computed from its length, so the dashes agree at the center. A shared core produces the whole frame as a function of time and the focused marker. The component renders it with react-native-svg and nothing else, and a requestAnimationFrame loop advances time. Squares sit on a regular rule where each band splits the width into equal steps. The component takes a size, a frozen time, a capture flag for the still, and an interactive flag.
Good for
- A data-convergence graphic, such as many inputs feeding one goal
- Editorial covers, empty states or loading visuals in a minimalist app
- A study of how aligned dash phases create a moire without any drawn rings
Dependencies
react-native-svgreact-native