Skip to content

No.514 · Micro-animations

Paper Plane

A send button whose plane actually leaves — it tips back and launches away trailing a dashed line — then a fresh one glides in.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Paper

Build a send button (blue pill, 48px, white label with a paper-plane icon) whose plane really leaves. On press: the plane tips back (−3px, −12°) for a beat, then launches up and to the right (translate 70px, −60px, a slight turn, fading) over 650ms on an accelerating curve, trailing a short dashed line that flashes and fades; the label rolls from "Send" to "Sent" and the pill turns green. About 1.75s later a fresh plane glides in from the lower left (translate −40px, 18px → 0, fading in, 520ms) and the label rolls back, ready again. Presses during the flight are ignored (aria-disabled). A hidden status announces "Sent". Selected variant — Paper (paper): Apply the paper theme. Where the brief above gives no colour values for it, choose a restrained paper palette with text at 4.5:1 contrast or better. Keep the geometry, states and motion described above unchanged. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Click, tap, Space or Enter to send; it resets itself after about 2.4 seconds. Motion: Launch 650ms; label reel 380ms; return glide 520ms; colour change 300ms. Accessibility: A real button with a visible label; aria-disabled while sending and a role="status" announcement. Reduced motion swaps states without flight. Responsive behavior: A fixed-size control that sits inline wherever it's placed; nothing depends on screen width. Touch: Works the same on touch; there's no hover-only behaviour. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.

Notes

Interaction
Click, tap, Space or Enter to send; it resets itself after about 2.4 seconds.
Motion
Launch 650ms; label reel 380ms; return glide 520ms; colour change 300ms.
Accessibility
A real button with a visible label; aria-disabled while sending and a role="status" announcement. Reduced motion swaps states without flight.
Responsive
A fixed-size control that sits inline wherever it's placed; nothing depends on screen width.
On touch
Works the same on touch; there's no hover-only behaviour.