This is the sample implementation of View Transitions API.
I wrote how I implemented this in the following article. (written in Japanese)
https://zenn.dev/iz_pixel/articles/77dce550a7694e
To run development server,
pnpm run dev
And open http://localhost:3000.