REFERENCE
- Gallery page: https://magpui.com/en/i/swipe-to-deposit-with-glow-confirmation-346d7f
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/swipe-to-deposit-with-glow-confirmation-346d7f/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/swipe-to-deposit-with-glow-confirmation-346d7f/clip.mp4
- Original post: https://x.com/BThreeAgency/status/2118686469267341525 by @BThreeAgency
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: A mobile 'Add money' flow in three states inside one screen. The user types an amount on a numeric keypad, swipes a pill slider to top up, the whole screen melts into a soft blur while a red and green glow blooms from the bottom (processing), then a dark frosted payment card rises with a 'Deposit confirmed' badge and the amount, and the card tilts in 3D following the finger. It should feel calm, premium and physical.
DESIGN SYSTEM: Phone viewport ~390x844, background near-black gradient #0B0A10 to #15131C. Centered column, 24px side padding. Small top bar: back arrow left, 'Add money' title centered, 15px medium, #F4F4F6. Amount: large bold geometric sans, 64px, letter-spacing -0.03em, white, with 'USD' 11px and a muted conversion line '= 100.00 USDC' 11px #7C7A86 below. Account selector pill under it: 'Card name •• 4821' plus muted balance, 13px, with a small chevron. Keypad: 3x4 grid, digits 22px regular #EDEDF0, rows ~56px apart, '.' and a backspace arrow; pressed key shows a 44px circle #2A2830 behind the digit. Bottom slider: 52px tall pill #1C1A22, radius 26px, 1px border rgba(255,255,255,0.06); white 40px circular knob with a dark arrow at the left; label 'Swipe to top up $100 >' 13px #9A98A3 centered. Confirmed state: badge pill 'DEPOSIT CONFIRMED' in 10px monospace uppercase, letter-spacing 0.12em, #34D399 text on rgba(52,211,153,0.12) with a check icon. Card: ~300x380, radius 18px, frosted dark glass (#1A1A1F at 85% with backdrop-blur 20px), subtle 1px top highlight, chip icon top-left, wordmark top-right in tiny caps, logo mark bottom-left. Below: '$100.00' 40px bold, a small 'Balance $188.40' chip 11px, and a full-width white 'Done' button, 48px, radius 24px, black 15px text.
MOTION: Key press: digit scales 0.92 and the circle fades in 0 to 1 over 80ms, out over 180ms; amount text updates with a 160ms vertical slide (8px) and fade, cubic-bezier(0.22,1,0.36,1); slider label updates to the new amount. Swipe: knob follows the pointer with 1:1 drag, label fades as progress grows (opacity 1 - progress*1.5); release past 85% snaps to the end in 220ms cubic-bezier(0.32,0.72,0,1), otherwise springs back in 300ms. Processing: whole content blurs 0 to 18px and dims to 60% over 450ms ease-out; a glow made of three large blurred radial blobs (emerald #22C55E left, warm cream #FDE7C8 center, red #EF4444 right, each ~260px, filter blur 60px) rises from below the bottom edge by 40% of the screen height over 700ms cubic-bezier(0.16,1,0.3,1) and slowly breathes (scale 1 to 1.08, 1600ms alternate); a 'PROCESSING DEPOSIT' monospace label with a pulsing dot fades in at center. Hold ~1200ms. Confirm: the label crossfades to 'DEPOSIT CONFIRMED' (200ms), the blobs drift upward and spread into soft green and red haze across the screen, fading to 25% over 900ms; then the card rises from translateY 120px, scale 0.94, opacity 0 to rest over 650ms cubic-bezier(0.16,1,0.3,1); amount, balance chip and Done button follow with 60ms stagger, 12px slide-up and fade. Card tilt: pointer or touch position maps to rotateX/rotateY up to ±10deg with perspective 900px, plus a moving specular highlight (radial white at 8% opacity following the pointer); smoothing with a spring (stiffness 180, damping 18); returns to flat on release over 500ms.
SECTIONS: 1) Entry state: top bar, amount, conversion line, account selector, keypad, swipe slider. 2) Key pressed state with circle highlight. 3) Dragging state of the slider. 4) Processing state: blurred UI, rising tri-color glow, processing label. 5) Confirmed state: badge, tilting card, amount, balance chip, Done button. 6) Done resets to the entry state with a 300ms fade.
IMPLEMENTATION: React with Motion (Framer Motion) for state transitions, drag on the slider knob (drag='x' with constraints) and spring tilt via useMotionValue/useSpring; glow blobs as absolutely positioned divs with CSS filter blur and mix-blend-mode screen; content blur via filter on a wrapper (or backdrop-filter overlay). Keep blobs GPU-friendly (transform and opacity only, will-change). prefers-reduced-motion: no tilt, no breathing, swap rising glow for a 200ms crossfade between states. Keypad keys are real buttons with visible focus rings; support physical keyboard digits and Backspace; the slider is also operable with Enter/Space as a 'Top up' button with aria-label including the amount; announce 'Processing' and 'Deposit confirmed' in an aria-live region.
ADAPT TO THE PROJECT: Reuse the project's existing design tokens, components and fonts; map colors to the closest existing tokens; never copy logos, brand names, card artwork or wordmarks from the original; use a neutral placeholder logo and card name.
SUCCESS CHECK:
- Typing digits updates both the big amount and the slider label, and backspace works with keyboard and pointer.
- Swiping past ~85% triggers blur plus a red, cream and green glow rising from the bottom, then a confirmed card that tilts smoothly under the pointer.
- With reduced motion enabled the flow still completes using simple crossfades and no tilt.