Now In Code
Get access

Mini Player Sticker Morph

In a 2-second loop the album page scrolls up, the mini player shrinks away and its cover flies beside the tab bar, morphing from rounded square to circle to a scalloped sticker with a slight overshoot. Then it all reverses. react-native-svg, shared core.

Inspired by a design posted on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "mini-player-sticker-morph" to this project.

The full source is attached at the end of this prompt. Put the files under components/mini-player-sticker-morph/, 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
24 Sep 2026
License
Unlimited commercial projects
Original design
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

A music app home screen seen from its lower half on a phone frame. A tall expanded mini player with album artwork, a waveform, a play bar and a sticker-shaped badge sits over a scrolling page of cards. On a two-second loop it collapses: the player shrinks into a compact bar, the sticker follows into an irregular shape, and the page scrolls up by a few hundred points while the tab bar stays. A return phase scrolls the page back and the player springs open again. The motion overshoots slightly at the end of each move, and the album art is a replaceable stand-in photo.

How it's built

A shared JavaScript core holds the geometry, the keyframes recorded per source frame, a frame function of time and the sticker's irregular outline path. Scroll distance and player size are read from those keyframes with Catmull-Rom interpolation. The React Native component draws the page, tab icons, waveform and sticker with react-native-svg, with gradients and Image for the artwork, and advances time on a requestAnimationFrame loop. No bitmaps of the interface remain; the interface is code-drawn.

Good for

  • A now-playing mini player that expands and collapses over scrolling content
  • A badge or sticker that changes shape as its container shrinks
  • A music, podcast or video app where the player must stay reachable above a tab bar

Dependencies

react-native-svgreact-native

Tags

CardDark ModeExpand and CollapseFly In / Fly OutIconMedia PlayerMinimalMorphingMusic and AudioScroll-DrivenSpring PhysicsState TransitionTab Bar

Related