Skip to content

AngularJS directive implementation with a CSS3 flip animation

License

Notifications You must be signed in to change notification settings

mackclark/angular-flippy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-flippy

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.

Demo

Try the demo here: http:https://codepen.io/zwacky/pen/bnpCh/

Flippy Directive Parameters

<flippy
  class="fancy"
  ng-click="flip()"
  ng-mouseenter="flip()"
  ng-mouseleave="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.css for this exemplary style)
  • ng-click: toggles the flipping upon click
  • ng-mouseenter: toggles the flipping upon mouse enter
  • ng-mouseleave: toggles the flipping upon mouse leave
  • flip-duration: the time it takes to flip in ms
  • timing-function: timing functions (see https://developer.mozilla.org/de/docs/Web/CSS/transition-timing-function)

About

AngularJS directive implementation with a CSS3 flip animation

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • CSS 52.3%
  • JavaScript 32.9%
  • HTML 14.8%