hasUAVisualTransition landed in Firefox 149, making it available across all major engines. As well as having a very catchy name, it lets you avoid doubling up on page transitions. Here's how it works:
If you want to experience the gross 3d transition first hand: https://simple-vt-demos.jakearchibald.com/gross-cube-transition-shaded/
Demo