AppSwap
Content that changes cross-fades through a blur instead of snapping: Save to Saving… to Saved, sun to moon, 3 to 4. After the header in Sileo (MIT). Change swapKey to swap. The leaving copy is out of flow and aria-hidden, so the box does not jump and a button is never named "Save Saving…" while both show. Reduced motion keeps the fade and drops the blur.
Install: pnpm add-component AppSwap
Button state and a count
Both copies show at once for one exit duration; the new one does not wait for the old one to leave.
API
swapKey(string | number | boolean): What the content is now. A new value swaps the old copy out and the new one in.tag(string): Element for the wrapper and each copy.