refactor animations, add flip and flipOut animation