fAfterAnimation = function () {
				jQuery(this).off("webkitAnimationEnd animationend");

				if (!bFirstSlideDone) {
					bFirstSlideDone = true;
					return bFirstSlideDone;
				}

				bTransitionEndPending = false;

				// remove direction to avoid collision with other animations
				fnSetAnimationDirection(oToPage, "");
				fnSetAnimationDirection(oFromPage, "");

				// remove animation classes, so they could be trigger again later
				if (fnHasParent(oToPage)) {
					oToPage.removeStyleClass(sToPageClass);
				}

				if (fnHasParent(oFromPage)) {
					oFromPage.removeStyleClass(sFromPageClass).addStyleClass("sapMNavItemHidden");
				}

				fCallback();
			}
Applying slide animation considering direction
@param {object} oFromPage The container navigating from
@param {object} oToPage The container navigating to
@param {function} fCallback The callback function called at the end of the animations
@private