REFERENCE
- Gallery page: https://magpui.com/en/i/note-that-folds-into-a-paper-plane-8c0636
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/note-that-folds-into-a-paper-plane-8c0636/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/note-that-folds-into-a-paper-plane-8c0636/clip.mp4
- Original post: https://ui.aceternity.com/interactions/paper-plane-send by Manu Arora (@mannupaaji)
Before building, download the first frame and look at it. If ffmpeg is available, download the clip and extract frames (ffmpeg -i clip.mp4 -vf fps=2 frame-%02d.png), then study the motion frame by frame. Match what you see; the text below describes it, the frames are the truth.
BUILD: Build a single send micro-interaction: a rounded note field holds a short message. On submit (button or Cmd/Ctrl+Enter) the text prints onto a paper sheet that folds into a paper plane, then the plane flies with a slight wander and optional motion trail into the blue Send button. On landing the button seals and opens into a small receipt card from the recipient. Feel delightful and physical, not a generic loading spinner.
DESIGN SYSTEM: Light page or card surface (#f7f7f8 grid dots optional). Note field: white rounded-2xl (~20px) floating card, soft shadow 0 12px 40px rgba(0,0,0,0.08), padding ~20px, body text ~15–16px neutral (#111–#222). Hint bottom-left "⌘ Enter to send" ~12px muted. Send button bottom-right: solid blue (#2563eb-ish), height ~36–40px, radius full/pill, white label + paper-plane icon. Receipt: same radius family, compact, soft border.
MOTION: (1) Print: text ink-draws onto a sheet over ~400–600ms. (2) Fold: sheet origami-folds to a plane in ~500–700ms with staggered crease rotations, easing cubic-bezier(0.34,1.2,0.64,1). (3) Flight: plane travels to the Send button over ~flightTime default 4.2s with wander amplitude default 1.0 (gentle S-curve), optional trail of fading shards when trail=true. (4) Impact: button briefly compresses (scale 0.96) then expands into a receipt over ~450ms. (5) Reset via Replay returns to the note idle. prefers-reduced-motion: skip fold/flight, crossfade note → receipt in 200ms.
SECTIONS: Parts — note field, paper sheet, paper plane, send button, receipt. States — idle, printing, folding, flying, received, reduced-motion.
IMPLEMENTATION: React + Motion for UI state; Three.js (or a lightweight WebGL layer) for the folding plane and flight path as hinted by motion+three deps. Expose props: flightTime, wander, trail, defaultMessage, onSent. Keep canvas DPR capped at 2; pause offscreen. Keyboard: focusable textarea, Cmd/Ctrl+Enter sends, Escape cancels mid-flight back to idle; aria-live announces "Message sent" on receipt.
ADAPT TO THE PROJECT: Map blue to the project's primary token, reuse existing textarea/button primitives, never copy brand copy or avatars from the original — use placeholders.
SUCCESS CHECK:
- Submit folds the note into a plane that flies into the Send button with optional trail.
- Button opens into a receipt; Replay restores the note.
- prefers-reduced-motion skips the flight and still reaches the receipt state.