I added a close button to my projects, but when I click it the page loads as a fresh page and there is no fadeout transition. I believe it happens because it is not on the regular navigation.
You can see the close button on the top right corner, I use different links for different categories. Then I control the visibility with -slug additions. How can I use this link with smooth page transitions?