Creating a custom transition component