Pixel Transfer Radio Selection
Selecting another radio option breaks the old dot into a grid of 2px pixels that arc over to the new option and reassemble there. Two extra variants transfer the dot by a row-by-row scan relay or by a burst that spirals back together.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "pixel-transfer-radio-selection" to this project. The full source is attached at the end of this prompt. Put the files under components/pixel-transfer-radio-selection/, 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
- 8 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @vanjek 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 settings card titled Casting strength with three radio rows, each with a ring, a heading and a one-line description. Selecting another row turns the old blue dot into two-pixel squares. The squares leave from the side facing the new row, arc outward and land in the new ring, where they fill in until the vector dot returns. A group of loose sparks flies along and fades before reaching it. Heading colours cross-fade between dark and grey, and a hovered row takes a light grey fill. The component takes a mode prop with three variants: the transfer described above, a relay in which rows of pixels step down line by line and leave faint trails, and a scatter where the dot bursts apart and the new one condenses from a ring of specks.
How it's built
The blue dot is a grid of eleven by eleven cells, each two pixels square and coloured from a diagonal gradient, and a pure function builds a delay, a duration and a path for every cell. In the transfer mode each path is a cubic Bezier with a sideways bulge that varies per cell, cells snap to the pixel grid, and take-off order follows how far each cell points towards the target. A frame function returns the cells, the vector dot and the heading mix, shared by the web preview and the React Native component. Rendering uses react-native-svg. No dependency beyond SVG is needed.
Good for
- Settings screens with single-choice options that deserve a distinctive selection effect
- Plan or tier pickers in playful or retro-styled apps
- A reference for moving particles between two locations with a grid-aligned look
Dependencies
react-native-svgreact-native