Trackball Card Sphere Welcome
42 thumbnail cards sit on a Fibonacci sphere, rolled to stay upright and scaled and dimmed by depth. Dragging rotates it like a trackball and the spin decays with a 0.45s time constant, while a 3D logo at the center yaws with speed.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "trackball-card-sphere-welcome" to this project. The full source is attached at the end of this prompt. Put the files under components/trackball-card-sphere-welcome/, 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
- 27 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @alexkehr 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 black welcome screen with a Log in pill at the top, a sphere made of about forty app and photo cards in the middle, and three sign-in buttons and a terms line below. Dragging the sphere turns it like a trackball, following the finger one to one. Letting go throws it with inertia that decays over a fraction of a second. Cards on the far side are smaller and darker, and cards in front overlap those behind. Every card stays upright and tilts outward from the centre. A glossy emblem in the middle yaws with the spin speed and settles back. A looping demo can replay a recorded set of flicks until the first touch.
How it's built
A shared JavaScript core runs a quaternion trackball with a fixed-step integrator and low-pass filtered release velocity, and places cards on a Fibonacci lattice. For each card it outputs a translate, scale, perspective and rotate list, with the roll locked so cards face up. The React Native component renders that list with ordinary Image and Text views, uses react-native-svg for icons, scaling a fixed-size logical screen to the container. The emblem is a 25-frame sprite sheet pre-rendered offline at different yaw angles, so no 3D library runs at runtime. A single timestamp reproduces any frame, which the preview uses for freezing.
Good for
- A welcome or sign-in screen that shows off a catalogue of content
- Portfolio, template or category browsers laid out on a sphere
- A no-WebGL way to spin a set of 2D items in apparent 3D
Dependencies
react-native-svgreact-native