Mood Check-In Gradient Card Carousel
A serif headline asks how you feel above three gradient cards, Calm, Anxious and Happy, that scroll sideways with snapping and grow when selected. A glass back button, input bar and mic sit below. Shared core for HTML and React Native.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "mood-check-in-gradient-card-carousel" to this project. The full source is attached at the end of this prompt. Put the files under components/mood-check-in-gradient-card-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 ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 16 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 questionnaire screen that asks how the user is feeling. A warm peach background carries a soft, blurred human silhouette that fades to orange at the bottom. A centered serif headline sits above a horizontal row of three mood cards, each an abstract gradient made of soft colour blobs with a label. Dragging the row moves the cards with the finger, stretches at the ends and settles on the nearest card after release. Tapping the middle card selects it, enlarging it and brightening its outline while the others shrink and dim, and a second tap clears it. A glass bar at the bottom accepts typed text, flanked by a back button and a microphone button that scale down while pressed.
How it's built
Everything visual is drawn procedurally with react-native-svg. The background and each card are stacks of ellipses filled with radial gradients whose falloff approximates a generalized Gaussian, so there is no blur filter and no photo. A shared JavaScript core owns a small state machine with init, step, act and settled functions, and returns a display list that the React Native component renders. A requestAnimationFrame loop runs only until the state settles. PanResponder handles the carousel drag and the taps, and a transparent TextInput sits over the glass bar to bring up the keyboard. Text is positioned by baseline.
Good for
- Mood, journaling or wellbeing check-ins with a handful of options
- A question step in an onboarding flow with a chat-style input at the bottom
- Gradient art that must stay resolution independent and light on assets
Dependencies
react-native-svgreact-native