Interaction blueprint
Lift to pay
A tactile vertical lift-to-pay mobile sheet: dragging the arrow raises northern-lights aurora curtains, releasing morphs the knob into a glowing sending orb ringed by a sweeping blue edge-glow wave, and completion blooms into a checkmark and exponential count-up receipt.
Inspired by Charles Postiaux (@PostiauxCharles) on X ↗
Build it
Choose a target and adapt the source to your interface.
<div class="ltp-stage">
<div class="ltp-phone">
<section class="ltp-sheet" aria-label="Lift to pay">
<div class="ltp-grabber" aria-hidden="true"></div>
<div class="ltp-aurora" aria-hidden="true"></div>
<div class="ltp-wave-top" aria-hidden="true"></div>
<div class="ltp-wave-sides" aria-hidden="true"></div>
<div class="ltp-wave-bottom" aria-hidden="true"></div>
<div class="ltp-rest-header">
<div class="ltp-avatar" aria-hidden="true">JM</div>
<div class="ltp-recipient">
Jordan Miller <span class="ltp-muted">· Rent</span>
</div>
<div class="ltp-amount">$1,850<span class="ltp-cents">.00</span></div>
</div>
<div class="ltp-chevrons" aria-hidden="true">
<svg viewBox="0 0 16 28" aria-hidden="true">
<path class="ltp-chev-3" d="M3.5 9.5 8 5.2 12.5 9.5" />
<path class="ltp-chev-2" d="M3.5 16.5 8 12.2 12.5 16.5" />
<path class="ltp-chev-1" d="M3.5 23.5 8 19.2 12.5 23.5" />
</svg>
</div>
<div class="ltp-orb-halo" aria-hidden="true"></div>
<button
class="ltp-knob"
type="button"
aria-label="Lift to pay $1,850.00 to Jordan Miller"
>
<svg class="ltp-arrow" viewBox="0 0 20 20" aria-hidden="true">
<path d="M10 15V5M5.5 9.5 10 5l4.5 4.5" /></svg
><svg class="ltp-check" viewBox="0 0 20 20" aria-hidden="true">
<path class="ltp-check-path" d="M5.2 10.4 8.6 13.8 15 6.8" />
</svg>
</button>
<div class="ltp-hint-lift" aria-hidden="true">Lift to pay</div>
<div class="ltp-hint-release" aria-hidden="true">Let go to pay</div>
<div class="ltp-sending" aria-hidden="true">
<div class="ltp-sending-line">
<span class="ltp-word ltp-word-1">Sending</span
><span class="ltp-word ltp-word-2">$1,850</span
><span class="ltp-word ltp-word-3">to</span
><span class="ltp-word ltp-word-4 ltp-accent">Jordan</span>
</div>
<div class="ltp-sending-sub">Rent · December</div>
</div>
<div class="ltp-receipt" role="status" aria-live="polite">
<div class="ltp-paid-amount">
<span class="ltp-paid-whole">$1,850</span
><span class="ltp-cents">.00</span>
</div>
<div class="ltp-paid-to">Paid to <strong>Jordan Miller</strong></div>
<div class="ltp-paid-date">Dec 3, 2026 · 11:14 AM</div>
</div>
<button class="ltp-done" type="button" tabindex="-1" aria-hidden="true">
Done
</button>
</section>
</div>
</div>
<script>
const stage = document.querySelector('.ltp-stage');
const aurora = stage.querySelector('.ltp-aurora');
const waveTop = stage.querySelector('.ltp-wave-top');
const waveSides = stage.querySelector('.ltp-wave-sides');
const waveBottom = stage.querySelector('.ltp-wave-bottom');
const restHeader = stage.querySelector('.ltp-rest-header');
const chevrons = stage.querySelector('.ltp-chevrons');
const chevPaths = [...stage.querySelectorAll('.ltp-chevrons path')];
const orbHalo = stage.querySelector('.ltp-orb-halo');
const knob = stage.querySelector('.ltp-knob');
const arrow = stage.querySelector('.ltp-arrow');
const checkPath = stage.querySelector('.ltp-check-path');
const hintLift = stage.querySelector('.ltp-hint-lift');
const hintRelease = stage.querySelector('.ltp-hint-release');
const words = [...stage.querySelectorAll('.ltp-word')];
const sendingSub = stage.querySelector('.ltp-sending-sub');
const paidAmount = stage.querySelector('.ltp-paid-amount');
const paidWhole = stage.querySelector('.ltp-paid-whole');
const paidTo = stage.querySelector('.ltp-paid-to');
const paidDate = stage.querySelector('.ltp-paid-date');
const doneBtn = stage.querySelector('.ltp-done');
const reduced = matchMedia('(prefers-reduced-motion:reduce)');
const THRESHOLD = 56,
LIFT_Y = 72,
ORB_Y = 207,
AMOUNT = 1850;
const easeOut = 'cubic-bezier(.22,1,.36,1)';
let phase = 'idle',
dragStart = null,
dragY = 0,
dragged = false,
anims = [],
timers = [],
countRaf = 0,
chevRaf = 0;
function clearRun() {
anims.forEach((a) => a.cancel());
anims = [];
timers.forEach((id) => clearTimeout(id));
timers = [];
cancelAnimationFrame(countRaf);
countRaf = 0;
}
function track(el, frames, opts) {
const a = el.animate(frames, { fill: 'both', ...opts });
anims.push(a);
return a;
}
function applyDrag(y) {
dragY = y;
const p = Math.min(1, y / LIFT_Y);
const ready = y >= THRESHOLD;
knob.style.transform = 'translateY(' + (-y).toFixed(1) + 'px)';
aurora.style.opacity = (0.16 + p * 0.84).toFixed(3);
aurora.style.transform =
'translateY(' +
((1 - p) * 76).toFixed(1) +
'px) scaleY(' +
(0.88 + p * 0.18).toFixed(3) +
')';
chevrons.style.opacity = Math.max(0, 1 - p * 4.5).toFixed(3);
hintLift.style.opacity = ready ? '0' : '1';
hintRelease.style.opacity = ready ? '1' : '0';
}
function snapBack() {
knob.dataset.dragging = 'false';
const t = '280ms ' + easeOut;
knob.style.transition = 'transform ' + t;
aurora.style.transition = 'opacity ' + t + ',transform ' + t;
chevrons.style.transition = 'opacity 220ms ease';
hintLift.style.transition = 'opacity 180ms ease';
hintRelease.style.transition = 'opacity 180ms ease';
applyDrag(0);
timers.push(
setTimeout(() => {
knob.style.transition =
aurora.style.transition =
chevrons.style.transition =
hintLift.style.transition =
hintRelease.style.transition =
'';
}, 300),
);
}
function startCount(delayMs) {
timers.push(
setTimeout(() => {
const start = performance.now(),
dur = 960;
function tick(now) {
const t = Math.min(1, (now - start) / dur);
const val =
t >= 1 ? AMOUNT : Math.round(AMOUNT * (1 - Math.exp(-6.2 * t)));
paidWhole.textContent = '$' + val.toLocaleString('en-US');
if (t < 1) countRaf = requestAnimationFrame(tick);
}
paidWhole.textContent = '$0';
countRaf = requestAnimationFrame(tick);
}, delayMs),
);
}
function commit(fromDragY) {
if (phase !== 'idle') return;
phase = 'sending';
clearRun();
knob.dataset.dragging = 'false';
knob.dataset.locked = 'true';
knob.setAttribute('aria-disabled', 'true');
knob.style.transition =
aurora.style.transition =
chevrons.style.transition =
hintLift.style.transition =
hintRelease.style.transition =
'';
if (reduced.matches) {
restHeader.style.opacity = '0';
chevrons.style.opacity = '0';
aurora.style.opacity = '0';
hintLift.style.opacity = '0';
hintRelease.style.opacity = '0';
arrow.style.opacity = '0';
knob.style.transform = 'translateY(-' + ORB_Y + 'px) scale(1)';
checkPath.style.opacity = '1';
checkPath.style.strokeDashoffset = '0';
paidWhole.textContent = '$1,850';
paidAmount.style.opacity = '1';
paidTo.style.opacity = '1';
paidDate.style.opacity = '1';
doneBtn.style.opacity = '1';
doneBtn.dataset.ready = 'true';
doneBtn.tabIndex = 0;
doneBtn.setAttribute('aria-hidden', 'false');
phase = 'paid';
doneBtn.focus({ preventScroll: true });
return;
}
const lifted = typeof fromDragY === 'number';
const t0 = lifted ? 0 : 360;
const startY = lifted ? fromDragY : 0;
const startOp = lifted
? Math.min(1, 0.16 + (startY / LIFT_Y) * 0.84)
: 0.16;
const startAuY = lifted ? (1 - Math.min(1, startY / LIFT_Y)) * 76 : 76;
const startAuS = lifted ? 0.88 + Math.min(1, startY / LIFT_Y) * 0.18 : 0.88;
knob.style.transform = '';
aurora.style.transform = '';
aurora.style.opacity = '';
chevrons.style.opacity = '';
hintLift.style.opacity = '';
hintRelease.style.opacity = '';
if (!lifted) {
track(
chevrons,
[
{ opacity: 1, transform: 'translateY(0)' },
{ opacity: 0, transform: 'translateY(-8px)' },
],
{ duration: 160, easing: easeOut },
);
track(
aurora,
[
{
offset: 0,
opacity: 0.16,
transform: 'translateY(76px) scaleY(.88)',
easing: easeOut,
},
{
offset: 0.58,
opacity: 1,
transform: 'translateY(0px) scaleY(1.06)',
easing: 'ease-in-out',
},
{ offset: 1, opacity: 0, transform: 'translateY(34px) scaleY(.94)' },
],
{ duration: 600 },
);
track(
hintLift,
[
{ opacity: 1, filter: 'blur(0px)' },
{ opacity: 0, filter: 'blur(3px)' },
],
{ duration: 130, delay: 140, easing: easeOut },
);
track(
hintRelease,
[
{ offset: 0, opacity: 0, filter: 'blur(3px)', easing: easeOut },
{ offset: 0.28, opacity: 1, filter: 'blur(0px)', easing: 'linear' },
{ offset: 0.68, opacity: 1, filter: 'blur(0px)', easing: easeOut },
{ offset: 1, opacity: 0, filter: 'blur(4px)' },
],
{ duration: 400, delay: 160 },
);
track(
knob,
[
{ offset: 0, transform: 'translateY(0px) scale(1)', easing: easeOut },
{
offset: 0.14,
transform: 'translateY(-' + LIFT_Y + 'px) scale(1)',
easing: easeOut,
},
{
offset: 0.27,
transform: 'translateY(-' + ORB_Y + 'px) scale(.24)',
easing: 'ease-in-out',
},
{
offset: 0.54,
transform: 'translateY(-' + ORB_Y + 'px) scale(.27)',
easing: 'ease-in-out',
},
{
offset: 0.8,
transform: 'translateY(-' + ORB_Y + 'px) scale(.24)',
easing: easeOut,
},
{
offset: 0.93,
transform: 'translateY(-' + ORB_Y + 'px) scale(1.06)',
easing: easeOut,
},
{ offset: 1, transform: 'translateY(-' + ORB_Y + 'px) scale(1)' },
],
{ duration: 2500 },
);
} else {
track(chevrons, [{ opacity: 0 }, { opacity: 0 }], { duration: 120 });
track(
aurora,
[
{
opacity: startOp,
transform:
'translateY(' +
startAuY.toFixed(1) +
'px) scaleY(' +
startAuS.toFixed(3) +
')',
},
{ opacity: 0, transform: 'translateY(34px) scaleY(.94)' },
],
{ duration: 260, easing: easeOut },
);
track(hintLift, [{ opacity: 0 }, { opacity: 0 }], { duration: 120 });
track(
hintRelease,
[
{ opacity: 1, filter: 'blur(0px)' },
{ opacity: 0, filter: 'blur(4px)' },
],
{ duration: 180, easing: easeOut },
);
track(
knob,
[
{
offset: 0,
transform: 'translateY(' + (-startY).toFixed(1) + 'px) scale(1)',
easing: easeOut,
},
{
offset: 0.15,
transform: 'translateY(-' + ORB_Y + 'px) scale(.24)',
easing: 'ease-in-out',
},
{
offset: 0.46,
transform: 'translateY(-' + ORB_Y + 'px) scale(.27)',
easing: 'ease-in-out',
},
{
offset: 0.78,
transform: 'translateY(-' + ORB_Y + 'px) scale(.24)',
easing: easeOut,
},
{
offset: 0.92,
transform: 'translateY(-' + ORB_Y + 'px) scale(1.06)',
easing: easeOut,
},
{ offset: 1, transform: 'translateY(-' + ORB_Y + 'px) scale(1)' },
],
{ duration: 2140 },
);
}
track(
restHeader,
[
{
opacity: 1,
filter: 'blur(0px)',
transform: 'translateY(0) scale(1)',
},
{
opacity: 0,
filter: 'blur(6px)',
transform: 'translateY(-8px) scale(.97)',
},
],
{ duration: 240, delay: t0, easing: easeOut },
);
track(
arrow,
[
{ opacity: 1, transform: 'scale(1)' },
{ opacity: 0, transform: 'scale(.45)' },
],
{ duration: 140, delay: t0, easing: easeOut },
);
track(
orbHalo,
[
{ offset: 0, opacity: 0, transform: 'scale(.35)', easing: easeOut },
{
offset: 0.2,
opacity: 1,
transform: 'scale(1)',
easing: 'ease-in-out',
},
{
offset: 0.54,
opacity: 0.9,
transform: 'scale(1.12)',
easing: 'ease-in-out',
},
{ offset: 0.84, opacity: 1, transform: 'scale(1)', easing: easeOut },
{ offset: 1, opacity: 0, transform: 'scale(1.42)' },
],
{ duration: 1600, delay: t0 + 220 },
);
words.forEach((word, i) => {
const d = t0 + 460 + i * 110,
total = 1440 - i * 110;
track(
word,
[
{
offset: 0,
opacity: 0,
filter: 'blur(6px)',
transform: 'translateY(3px)',
easing: easeOut,
},
{
offset: Math.min(0.28, 240 / total),
opacity: 1,
filter: 'blur(0px)',
transform: 'translateY(0)',
easing: 'linear',
},
{
offset: Math.max(0.72, 1 - 220 / total),
opacity: 1,
filter: 'blur(0px)',
transform: 'translateY(0)',
easing: easeOut,
},
{
offset: 1,
opacity: 0,
filter: 'blur(6px)',
transform: 'translateY(-3px)',
},
],
{ duration: total, delay: d },
);
});
track(
sendingSub,
[
{
offset: 0,
opacity: 0,
filter: 'blur(4px)',
transform: 'translateY(3px)',
easing: easeOut,
},
{
offset: 0.24,
opacity: 1,
filter: 'blur(0px)',
transform: 'translateY(0)',
easing: 'linear',
},
{
offset: 0.78,
opacity: 1,
filter: 'blur(0px)',
transform: 'translateY(0)',
easing: easeOut,
},
{
offset: 1,
opacity: 0,
filter: 'blur(4px)',
transform: 'translateY(-2px)',
},
],
{ duration: 980, delay: t0 + 900 },
);
track(
waveTop,
[
{ offset: 0, opacity: 0, easing: easeOut },
{ offset: 0.22, opacity: 1, easing: 'ease-in-out' },
{ offset: 0.58, opacity: 0.52, easing: 'ease-in-out' },
{ offset: 1, opacity: 0 },
],
{ duration: 960, delay: t0 + 940 },
);
track(
waveSides,
[
{ offset: 0, opacity: 0, easing: easeOut },
{ offset: 0.26, opacity: 1, easing: 'ease-in-out' },
{ offset: 0.66, opacity: 0.82, easing: 'ease-in-out' },
{ offset: 1, opacity: 0 },
],
{ duration: 1220, delay: t0 + 1040 },
);
track(
waveBottom,
[
{ offset: 0, opacity: 0, easing: easeOut },
{ offset: 0.26, opacity: 1, easing: 'ease-in-out' },
{ offset: 0.62, opacity: 0.88, easing: 'ease-in-out' },
{ offset: 1, opacity: 0 },
],
{ duration: 1320, delay: t0 + 1220 },
);
track(
checkPath,
[
{ offset: 0, strokeDashoffset: 26, opacity: 0, easing: easeOut },
{ offset: 0.15, strokeDashoffset: 23, opacity: 1, easing: easeOut },
{ offset: 1, strokeDashoffset: 0, opacity: 1 },
],
{ duration: 280, delay: t0 + 1840 },
);
track(
paidAmount,
[
{
opacity: 0,
filter: 'blur(6px)',
transform: 'translateY(6px) scale(.96)',
},
{
opacity: 1,
filter: 'blur(0px)',
transform: 'translateY(0) scale(1)',
},
],
{ duration: 340, delay: t0 + 1820, easing: easeOut },
);
track(
paidTo,
[
{ opacity: 0, filter: 'blur(5px)', transform: 'translateY(6px)' },
{ opacity: 1, filter: 'blur(0px)', transform: 'translateY(0)' },
],
{ duration: 320, delay: t0 + 2280, easing: easeOut },
);
track(
paidDate,
[
{ opacity: 0, filter: 'blur(4px)', transform: 'translateY(5px)' },
{ opacity: 1, filter: 'blur(0px)', transform: 'translateY(0)' },
],
{ duration: 300, delay: t0 + 2460, easing: easeOut },
);
track(
doneBtn,
[
{ opacity: 0, transform: 'translateY(10px) scale(.95)' },
{ opacity: 1, transform: 'translateY(0) scale(1)' },
],
{ duration: 340, delay: t0 + 2740, easing: easeOut },
);
startCount(t0 + 1840);
timers.push(
setTimeout(() => {
phase = 'paid';
doneBtn.dataset.ready = 'true';
doneBtn.tabIndex = 0;
doneBtn.setAttribute('aria-hidden', 'false');
}, t0 + 2740),
);
}
function reset() {
clearRun();
phase = 'idle';
dragStart = null;
dragY = 0;
dragged = false;
knob.dataset.dragging = 'false';
knob.dataset.locked = 'false';
knob.removeAttribute('aria-disabled');
doneBtn.dataset.ready = 'false';
doneBtn.tabIndex = -1;
doneBtn.setAttribute('aria-hidden', 'true');
[
restHeader,
chevrons,
aurora,
hintLift,
hintRelease,
arrow,
knob,
checkPath,
paidAmount,
paidTo,
paidDate,
doneBtn,
].forEach((el) => {
el.style.opacity = '';
el.style.transform = '';
el.style.transition = '';
});
checkPath.style.strokeDashoffset = '';
paidWhole.textContent = '$1,850';
knob.focus({ preventScroll: true });
}
knob.addEventListener('pointerdown', (event) => {
if (event.button !== 0 || phase !== 'idle') return;
knob.setPointerCapture(event.pointerId);
dragStart = event.clientY;
dragY = 0;
dragged = false;
knob.dataset.dragging = 'true';
knob.style.transition =
aurora.style.transition =
chevrons.style.transition =
hintLift.style.transition =
hintRelease.style.transition =
'none';
});
knob.addEventListener('pointermove', (event) => {
if (dragStart === null || phase !== 'idle') return;
const raw = Math.max(0, dragStart - event.clientY);
if (raw > 4) dragged = true;
if (!dragged) return;
const damped = raw <= LIFT_Y ? raw : LIFT_Y + (raw - LIFT_Y) * 0.28;
applyDrag(Math.min(104, damped));
});
function endPointer(cancelled) {
if (dragStart === null) return;
const wasDragged = dragged,
finalY = dragY;
dragStart = null;
dragged = false;
if (cancelled || phase !== 'idle') {
if (phase === 'idle') snapBack();
return;
}
if (wasDragged) {
if (finalY >= THRESHOLD) commit(finalY);
else snapBack();
} else {
knob.dataset.dragging = 'false';
}
}
knob.addEventListener('pointerup', () => endPointer(false));
knob.addEventListener('pointercancel', () => endPointer(true));
knob.addEventListener('click', () => {
if (phase === 'idle' && dragY === 0) commit(null);
});
doneBtn.addEventListener('click', reset);
stage.addEventListener('keydown', (event) => {
if (event.key === 'Escape' && phase === 'paid') {
event.preventDefault();
reset();
}
});
function animateChevrons(now) {
if (phase === 'idle' && dragStart === null && !reduced.matches) {
const t = (now % 1500) / 1500;
chevPaths.forEach((p, idx) => {
const order = 2 - idx;
const wave = Math.max(0, Math.sin(t * Math.PI * 2 - order * 0.85));
p.style.opacity = (0.2 + wave * 0.52).toFixed(2);
});
}
chevRaf = requestAnimationFrame(animateChevrons);
}
if (!reduced.matches) chevRaf = requestAnimationFrame(animateChevrons);
</script>
<style>
.ltp-stage {
position: relative;
width: 360px;
max-width: 100%;
height: 440px;
display: grid;
place-items: center;
padding: 10px;
font:
14px/1.4 -apple-system,
BlinkMacSystemFont,
'SF Pro Display',
'SF Pro Text',
system-ui,
sans-serif;
color: #f5f5f7;
user-select: none;
-webkit-user-select: none;
}
.ltp-phone {
position: relative;
width: 326px;
height: 416px;
padding: 40px 8px 8px;
border-radius: 28px 28px 48px 48px;
background: #000;
box-shadow:
0 0 0 2px #d2d4d8,
0 0 0 3px rgba(0, 0, 0, 0.1),
0 22px 48px rgba(0, 0, 0, 0.24);
overflow: hidden;
}
.ltp-sheet {
position: relative;
width: 100%;
height: 100%;
border-radius: 30px 30px 41px 41px;
background: #0b0b0c;
overflow: hidden;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
isolation: isolate;
}
.ltp-grabber {
position: absolute;
top: 10px;
left: 50%;
width: 34px;
height: 4px;
margin-left: -17px;
border-radius: 999px;
background: #2c2c2e;
z-index: 6;
pointer-events: none;
}
.ltp-aurora {
position: absolute;
inset: 14% -20% -14% -20%;
z-index: 1;
pointer-events: none;
opacity: 0.16;
transform: translateY(76px) scaleY(0.88);
transform-origin: 50% 100%;
filter: blur(22px) saturate(132%);
background-image:
radial-gradient(
28% 72% at 20% 88%,
rgba(38, 76, 158, 0.78) 0%,
transparent 72%
),
radial-gradient(
24% 82% at 39% 84%,
rgba(28, 128, 138, 0.74) 0%,
transparent 70%
),
radial-gradient(
28% 86% at 52% 88%,
rgba(47, 140, 188, 0.88) 0%,
transparent 72%
),
radial-gradient(
26% 78% at 68% 86%,
rgba(37, 96, 204, 0.82) 0%,
transparent 72%
),
radial-gradient(
24% 72% at 83% 88%,
rgba(22, 56, 132, 0.72) 0%,
transparent 72%
);
}
.ltp-wave-top,
.ltp-wave-sides,
.ltp-wave-bottom {
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
z-index: 2;
opacity: 0;
}
.ltp-wave-top {
box-shadow:
inset 0 3px 9px rgba(154, 216, 255, 0.9),
inset 0 14px 26px -2px rgba(78, 162, 246, 0.92),
inset 0 28px 42px -12px rgba(28, 94, 210, 0.58),
inset 14px 10px 24px -10px rgba(68, 154, 244, 0.72),
inset -14px 10px 24px -10px rgba(68, 154, 244, 0.72);
}
.ltp-wave-sides {
box-shadow:
inset 3px 0 9px rgba(146, 210, 255, 0.86),
inset -3px 0 9px rgba(146, 210, 255, 0.86),
inset 14px 0 26px -2px rgba(78, 162, 246, 0.92),
inset -14px 0 26px -2px rgba(78, 162, 246, 0.92),
inset 28px 0 42px -12px rgba(26, 90, 204, 0.54),
inset -28px 0 42px -12px rgba(26, 90, 204, 0.54);
-webkit-mask-image: linear-gradient(
180deg,
rgba(0, 0, 0, 0.92) 0%,
#000 22%,
#000 78%,
rgba(0, 0, 0, 0.92) 100%
);
mask-image: linear-gradient(
180deg,
rgba(0, 0, 0, 0.92) 0%,
#000 22%,
#000 78%,
rgba(0, 0, 0, 0.92) 100%
);
}
.ltp-wave-bottom {
box-shadow:
inset 0 -3px 10px rgba(160, 220, 255, 0.94),
inset 0 -16px 28px -2px rgba(80, 166, 248, 0.96),
inset 0 -32px 46px -10px rgba(28, 94, 210, 0.62),
inset 14px -12px 26px -6px rgba(68, 154, 244, 0.82),
inset -14px -12px 26px -6px rgba(68, 154, 244, 0.82);
}
.ltp-rest-header {
position: absolute;
top: 42px;
left: 0;
right: 0;
text-align: center;
z-index: 4;
pointer-events: none;
}
.ltp-avatar {
width: 38px;
height: 38px;
margin: 0 auto 12px;
border-radius: 999px;
background: #1c1c1f;
border: 1px solid rgba(255, 255, 255, 0.07);
display: grid;
place-items: center;
font-size: 13px;
font-weight: 500;
letter-spacing: 0.01em;
color: rgba(255, 255, 255, 0.92);
}
.ltp-recipient {
font-size: 13.5px;
font-weight: 500;
letter-spacing: -0.01em;
color: #f5f5f7;
}
.ltp-muted {
color: #7c7c82;
font-weight: 400;
}
.ltp-amount {
margin-top: 4px;
font-size: 40px;
font-weight: 500;
letter-spacing: -0.03em;
line-height: 1.08;
font-variant-numeric: tabular-nums;
color: #fff;
}
.ltp-cents {
color: #636368;
}
.ltp-chevrons {
position: absolute;
top: 194px;
left: 50%;
width: 20px;
margin-left: -10px;
display: grid;
place-items: center;
pointer-events: none;
z-index: 3;
}
.ltp-chevrons svg {
width: 16px;
height: 28px;
fill: none;
stroke: rgba(255, 255, 255, 0.28);
stroke-width: 1.7;
stroke-linecap: round;
stroke-linejoin: round;
}
.ltp-orb-halo {
position: absolute;
top: 86px;
left: 50%;
width: 124px;
height: 124px;
margin: -62px 0 0 -62px;
border-radius: 999px;
pointer-events: none;
z-index: 3;
opacity: 0;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.92) 0%,
rgba(222, 236, 255, 0.46) 15%,
rgba(130, 162, 208, 0.18) 36%,
rgba(58, 66, 82, 0.07) 58%,
transparent 76%
);
}
.ltp-knob {
position: absolute;
top: 266px;
left: 50%;
width: 54px;
height: 54px;
margin-left: -27px;
padding: 0;
border: 0;
border-radius: 999px;
background: linear-gradient(180deg, #f8f9fb 0%, #e5e9f2 100%);
box-shadow:
0 8px 22px rgba(0, 0, 0, 0.48),
inset 0 1px 0 rgba(255, 255, 255, 0.95);
color: #111113;
display: grid;
place-items: center;
touch-action: none;
cursor: grab;
z-index: 5;
}
.ltp-knob[data-dragging='true'] {
cursor: grabbing;
}
.ltp-knob[data-locked='true'] {
cursor: default;
pointer-events: none;
}
.ltp-knob:focus-visible,
.ltp-done:focus-visible {
outline: 2px solid #7cb3ff;
outline-offset: 3px;
}
.ltp-arrow,
.ltp-check {
position: absolute;
width: 20px;
height: 20px;
fill: none;
stroke: #111113;
stroke-linecap: round;
stroke-linejoin: round;
pointer-events: none;
}
.ltp-arrow {
stroke-width: 2;
}
.ltp-check {
width: 22px;
height: 22px;
stroke-width: 2.5;
}
.ltp-check-path {
stroke-dasharray: 26;
stroke-dashoffset: 26;
opacity: 0;
}
.ltp-hint-lift,
.ltp-hint-release {
position: absolute;
top: 332px;
left: 0;
right: 0;
text-align: center;
font-size: 12px;
font-weight: 450;
letter-spacing: -0.005em;
pointer-events: none;
z-index: 4;
}
.ltp-hint-lift {
color: #86868b;
}
.ltp-hint-release {
color: #9da8b8;
opacity: 0;
}
.ltp-sending {
position: absolute;
top: 148px;
left: 0;
right: 0;
text-align: center;
pointer-events: none;
z-index: 4;
}
.ltp-sending-line {
display: inline-flex;
gap: 4.5px;
font-size: 15.5px;
font-weight: 500;
letter-spacing: -0.015em;
color: #f5f5f7;
}
.ltp-word {
display: inline-block;
opacity: 0;
}
.ltp-accent {
color: #7cb3ff;
}
.ltp-sending-sub {
margin-top: 4px;
font-size: 12px;
color: #78787e;
opacity: 0;
}
.ltp-receipt {
position: absolute;
top: 140px;
left: 0;
right: 0;
text-align: center;
pointer-events: none;
z-index: 4;
}
.ltp-paid-amount {
font-size: 40px;
font-weight: 500;
letter-spacing: -0.03em;
line-height: 1.08;
font-variant-numeric: tabular-nums;
color: #fff;
opacity: 0;
}
.ltp-paid-to {
margin-top: 10px;
font-size: 13px;
color: #7c7c82;
opacity: 0;
}
.ltp-paid-to strong {
font-weight: 500;
color: #f5f5f7;
}
.ltp-paid-date {
margin-top: 4px;
font-size: 11px;
color: #636368;
opacity: 0;
}
.ltp-done {
position: absolute;
top: 274px;
left: 50%;
margin-left: -49px;
width: 98px;
height: 38px;
border: 0;
border-radius: 999px;
background: #efefef;
color: #111113;
font-size: 13px;
font-weight: 550;
letter-spacing: -0.01em;
opacity: 0;
pointer-events: none;
cursor: pointer;
z-index: 5;
transition: background-color 140ms ease;
}
.ltp-done:hover {
background: #ffffff;
}
.ltp-done[data-ready='true'] {
pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
.ltp-knob,
.ltp-aurora,
.ltp-chevrons,
.ltp-done {
transition: none !important;
}
}
</style>Animation breakdown
Frame phases, motion intent, implementation constraints and accessible alternatives.
Rest: dark payment sheet shows JM avatar, Jordan Miller · Rent, $1,850.00, three pulsing upward chevrons, a soft white arrow button, and a faint bottom glow. Lift (drag upward): chevrons fade immediately as vertical cobalt-and-teal aurora curtains rise behind the button; crossing the threshold swaps Lift to pay to Let go to pay (releasing early springs smoothly back over 280ms). Release → Orb (0–320ms): header and aurora blur out as the white button rises to upper-center and shrinks into a glowing white core orb with a breathing halo. Sending (460–1900ms): Sending $1,850 to Jordan reveals word-by-word with blur-to-sharp fade while an electric-blue inner perimeter glow sweeps from the top edge down both sides and pools around the bottom corners. Paid (1820–3080ms): the orb expands back into a crisp white circle as a checkmark strokes in, the amount counts rapidly from $0.00 to $1,850.00 with exponential ease-out, Paid to Jordan Miller and timestamp unblur into place, and the Done pill rises at bottom.
Motion intent
A tactile vertical lift-to-pay mobile sheet: dragging the arrow raises northern-lights aurora curtains, releasing morphs the knob into a glowing sending orb ringed by a sweeping blue edge-glow wave, and completion blooms into a checkmark and exponential count-up receipt.
Direct vertical dragging responds at 0ms latency with a 280ms ease-out cancel spring-back. After release, 320ms carries the knob cleanly into the top orb anchor, ~1.4s gives the word-by-word sending message and top-to-bottom perimeter light wave room to breathe, and 960ms exponential deceleration lands the count-up crisply on $1,850.00.
A crisp ease-out curve (cubic-bezier(.22, 1, .36, 1)) governs drag recovery, orb travel, and element reveals, paired with an exponential ease-out curve (1 - exp(-6.2t)) for the numeric receipt count-up.
Motion specification
- Trigger
- Drag the circular arrow upward past the threshold and release to send payment, or click / press Space to trigger the lift choreography. Release early to spring back; select Done or press Escape to reset.
- Timing
- 3.1s
- Easing
- cubic-bezier(.22, 1, .36, 1)
Animated properties
Implementation notes
- Keep the lift button, glowing orb core, and final checkmark circle as one continuous hero element so scale and Y-travel never break visual continuity.
- Layer three rounded inset-box-shadow waves (top, sides, bottom) inheriting the sheet border-radius so the sweeping blue perimeter light hugs the curved corners smoothly on the compositor.
- Drive the live drag with pointer capture and subtle rubber-band damping past the commit threshold, while offering click/Enter/Space activation for keyboard accessibility.
- Use tabular-nums on both the rest amount and counting receipt amount so digits never jitter horizontally while accelerating from $0.00 to $1,850.00.
Reduced motion
Disable idle chevron motion, aurora travel, and light waves; jump directly to the confirmed $1,850.00 receipt state and move focus to Done.
- Provide a real button for the lift control so keyboard users can trigger payment via Enter or Space without pointer dragging.
- Announce the confirmed receipt through an aria-live="polite" status region and move focus between Done and the lift control on reset.
- Support Escape to dismiss the paid receipt and return cleanly to the initial state.
Avoid
- Do not hide future phases with display:none if timeline scrubbing or layout stability matters; keep opacity:0 with pointer-events:none and inert tabindex until active.
- Do not jump instantly from drag release to completion without the orb shrink and perimeter sweep—the intermediate state communicates active payment transmission.