Since this question requires a multipage example, I used codesandbox to make one. Please check this example to understand the question.
The Go Back button is for window.history.back() and it's working fine.
But, there is a small delay between the pages that are coming and leaving. I mean, if you go to a page, the existing page will finish the leaving first, and then the transition of the next page (the page you clicked for) will start. The same thing happens when you try to go back to the previous page. I tried deleting the transition from .is-leaving but that makes it worse.