Adapter animation function similar to UIActionSheet