Added support for custom Animations

Hello! The following pull request is to add support for using user defined animations instead of always using the default fade in/fade out animations. If no user defined animation is set, it will default back to the fade in/fade out animations that were originally there.