Share sheet

One small button that opens into a full share panel.

Demo recipients and delivery. Copy link is real.

Key CSS & implementation tricks

.copy-window {
  display: grid;
  height: 18px;
  overflow: hidden;
}
.copy-face { grid-area: 1 / 1; }

.copy-enter {
  animation: enter 340ms
    cubic-bezier(.2, .85, .25, 1.12) both;
}
.copy-leave {
  animation: leave 340ms
    cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes enter {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes leave {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-110%); opacity: 0; }
}

destination.style.visibility = 'hidden';              // the real chip avatar waits
const dx = to.left - from.left, dy = to.top - from.top, scale = to.width / from.width;
const animation = flight.animate([
  { transform: 'translate(0,0) scale(1)', offset: 0 },
  { transform: `translate(${dx * .6}px,${dy * .68 - 14}px) scale(${1 + (scale - 1) * .55})`, offset: .55 },
  { transform: `translate(${dx}px,${dy}px) scale(${scale})`, offset: 1 },
], { duration: 520, easing: 'cubic-bezier(.25,.85,.25,1)', fill: 'forwards' });
animation.finished.then(() => { destination.style.visibility = ''; flight.remove(); });

const frames = Array.from({ length: 61 }, (_, i) => {
  const t = i / 60;
  const progress = i === 60 ? 1 : 1 - Math.exp(-8.5 * t) * (Math.cos(9 * t) + .55 * Math.sin(9 * t));
  return { width: `${lerp(from.width, to.width, progress)}px`, height: …, borderRadius: …, offset: t };
});
shape.animate(frames, { duration: 680, easing: 'linear' });