Setting up a path for the flip animation.