Hold to Record
Hold the mic to record, slide left to cancel (the mic drops into a trash can), slide up to lock hands-free, and let go to send a voice message
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
The input bar at the bottom of a chat window: a text field on the left and a round microphone button on the right, with a few chat bubbles above. Holding the mic: the button springs up to about 1.55 and switches to the accent color, with a glow around it pulsing with the volume; the text field fades out and becomes a recording strip (a blinking red dot, a timer counting from 0:00 and a shimmering '‹ Slide to cancel' hint in the middle), and a lock pill with an up arrow floats above the button. Dragging left moves the button and hint left as the hint fades; past a set distance it cancels: a red trash can pops up on the left, its lid opens, a small microphone hops into it along an arc, the lid closes and the can shrinks away. Dragging up moves the lock pill up; past a set distance it locks: the shackle closes, the mic turns into a send button and you can let go and keep recording, then tap send. Releasing during recording sends it: the input bar returns and a voice message bubble (play button, bars of varying height, duration) springs up from the bottom right of the chat. When idle it takes turns demonstrating send, slide to cancel and lock. (GSAP: dragging follows one axis only, horizontal distance decides cancel and vertical distance decides lock; the trash can is one timeline: pop in → open lid → tween the mic's left while y goes up then down for an arc → close lid → shrink)
When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.
How to use it
- Tap “Copy AI prompt”.
- Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More button effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →