Post
You can hack your way into this using MutationObserver. POC: codepen.io/bramus/pen/z... The observer undoes mutations like remove, and then reapplies that mutation wrapped in document.startViewTransition. (This is a remake of codepen.io/bramus/pen/o..., which has View Transition JS intermixed)
codepen.ioAutomatic View Transitions with MutationObserver...
0 reposts16 likes
I built a web component that used this technique in 2020 before view transitions were a thing. So much easier now! That MutationObserver trick always seemed incredibly powerful. animate-presence.vercel.app/basic
animate-presence.vercel.appAnimate Presence | Basic