Swap what is shown through a wall of pixels. Blocks cover the old content in dither order, the way old computers dissolved between screens, the content changes behind them, and they clear the same way. No JavaScript animation.
npx shadcn@latest add https://mizzle.saddy.me/r/pixel-transition.jsonSign in or get a license at mizzle to see its source and install it.