Now In Code
Get access

Spinning Disc Avatar to Now-Playing Card

Tapping a rotating CD avatar slides in a frosted card with a small overshoot, blurring the header beneath, while the disc grows and spins at 190 degrees per second. Pause stops the disc and shifts the title left. Demo loop and interactive modes.

Inspired by a design by @proskuaaa on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "spinning-disc-to-now-playing-card" to this project.

The full source is attached at the end of this prompt. Put the files under components/spinning-disc-to-now-playing-card/, 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
4 Nov 2026
License
Unlimited commercial projects
Original design
@proskuaaa on 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 header row with a location label, a map icon, a search button and a round vinyl-style avatar that rotates slowly. Tapping the avatar slides a frosted now-playing card in from the right over the header, so the text and icons behind it blur into the glass. The disc travels with the card, grows from its avatar size to a larger record anchored at the card's top edge, and is clipped by the card's rounded left side. While playing, the disc spins. Pressing pause enlarges the button, stops the disc, tucks it toward the card edge, shifts the title left and cross-fades the pause icon into a play icon. Play reverses it, and a close button slides the card away and springs the avatar back.

How it's built

A shared plain-JavaScript core exposes a function that takes the time and a log of tap events and returns every position, scale, opacity and rotation for that frame. The React Native component runs a requestAnimationFrame loop, feeds the result into react-native-svg for the disc, icons and text, and puts expo-blur's BlurView behind the card for the frosted glass. Timing is a mix of springs and short eased tweens evaluated in the core rather than in native animation libraries.

Good for

  • A mini player that expands out of a header or tab bar in a music or podcast app
  • Any top-bar control that opens a transient card, such as a call or timer status
  • Transport controls where pause and play need a visible state change on the artwork

Dependencies

expo-blurreact-native-svgreact-native

Tags

Blur TransitionCardIconLiquid GlassMedia PlayerMusic and AudioPress FeedbackRotationSpring PhysicsState Transition

Related