implementing directions for entrance and exit animations via animate.css