Audio
Voice Note
NewA chat voice message where sparks rise from the playhead, bars light up as it plays and the transcript lights up word by word.
npx motionsnack add voice-noteCustomize
<VoiceNote />Props
16 properties
| Property | Type | Default | Description |
|---|---|---|---|
| src | string | '' | Audio file. Without one the note simulates playback, so it can be tried without a file. |
| playLabel / pauseLabel | string | 'Play voice note' / 'Pause voice note' | Accessible names of the play button. |
| labels | { note?, seek?, position?, speed?, showTranscript?, hideTranscript?, unheard? } | English | Other UI strings; {name}, {duration}, {time}, {total}, {speed} are filled in. |
| locale | string | 'en-US' | BCP 47 locale of the spoken times and the initials. |
| particleCount | number | - | Deprecated, ignored. |
| bars | number | - | Deprecated, ignored. |
| className | string | '' | Extra classes on the wrapper. |
| senderName | string | 'Nora Vale' | Who sent the note. |
| avatarSrc | string | '/sections/motion-01.jpg' | Photo of the sender. Empty shows their initials. |
| sentAt | string | '9:41' | Time the note was sent. Empty hides it. |
| duration | number | 47 | Length when there is no audio file. |
| transcript | string | 'Hey, I just watched the new cut. The opening shot with the blue light is perfect, keep it. Can we slow the logo reveal a little and send it to the client tonight?' | What is said in the note. Empty hides the transcript button. |
| showTranscript | boolean | false | Open the transcript on load. |
| unheard | boolean | true | Mark the note as not played yet. |
| glowColor | string | '#0044ff' | Colour of the ambient glow and the far particles (decorative light). |
| glowColorTo | string | '#9cc2ff' | Colour of the sparks and the near particles (decorative light). |
About Voice Note
Voice Note is the message bubble a voice recording deserves. The sender's photo sits beside it and a glow ring breathes out of it while the note plays. Inside the bubble particles drift up through a soft glow, the waveform works as the scrubber: played bars turn white, the bars around the playhead pulse and sparks rise from it. The time rolls digit by digit, play turns into pause, the speed chip rolls through 1x, 1.5x and 2x, a dot marks a note nobody has heard yet and the read ticks light up once it is played. Open the transcript and every word lights up as it is spoken. It plays a real audio file or simulates playback for a demo, rewinds when it ends like a chat does, works from the keyboard and calms its motion for reduced motion.
What's included
- Sparks rising from the playhead over drifting particles
- Waveform scrubber with pulsing bars around the playhead
- Transcript that lights up word by word
- Glow ring around the sender while it plays
- Rolling time, play-pause morph and a speed chip
- Unheard dot and read ticks that light up
- Real audio file or simulated playback, keyboard ready
- Type
- Animated React audio component
- Library
- Components · Audio
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-24