This is the Y axis, not the Z axis.
This seems to be unnecessary. Letting the card flip its sides over is enough.
Switch to flipping cards over the X axis, rather than the Y.