AngularJS directive implementation with a CSS3 flip animation