By making the transition time of the exit animation shorter than the value of the third argument, you can get a natural animation without a transition in the middle of the animation.
Uses
In this example, I've created a wrapper component that provides animations.
It also works with just exit or entry by putting undefined in it.