AngularJS directive implementation with a CSS3 flip animation.
With v1.0 you'll find more customization within the directive itself. You are free to hook into any events like ng-click to fire the flip event.
Try the demo here: http://codepen.io/zwacky/pen/bnpCh/
<flippy
class="fancy"
id="flip"
ng-click="flip('flip')"
ng-mouseenter="flip('flip')"
ng-mouseleave="flip('flip')"
flip-duration="800"
timing-function="ease-in-out"
>class: fancy is an optional class to show some 3D-ness. (include./css/flippy-fancy.min.cssfor this exemplary style)ng-click: toggles the flipping upon clickng-mouseenter: toggles the flipping upon mouse enterng-mouseleave: toggles the flipping upon mouse leaveflip-duration: the time it takes to flip in mstiming-function: timing functions (see https://developer.mozilla.org/de/docs/Web/CSS/transition-timing-function)