Animation for Page change

Hello everyone,
is there a way to create an animation when calling up a subview? I would also like to have an animation when pressing the back button in the subview. A slide in animation like in the iOS settings would be nice.

Like this?

No way w/o an additional coding.
You may only replace a subview by a custom card like state-switch mentioned by Tom or a swipe-card, both support some transitions.

Thank you for your quick replies. I will try both options and give you feedback.