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:

@firefoxwebdevs Some web developers may want to be able to disable the UA visual transition, so that they can run their own transition at all times.

If there is one transition from A to B and a different transition from B back to A, some users may be confused or distracted. As a web developer, I may want to avoid that.

@simevidas yeah, I agree. But… Chrome and Safari aren't keen on that.