Implementation of a custom view controller transition with support for auto-rotation