Make page transitions compatible with custom components
getTransitionDirection() for custom-component