angular-flippy

WebJar for angular-flippy

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-flippy
Last Version

Last Version

2.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

angular-flippy
WebJar for angular-flippy
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/zwacky/angular-flippy

Download angular-flippy

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-flippy/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-flippy</artifactId>
    <version>2.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-flippy/
implementation 'org.webjars.bower:angular-flippy:2.0.6'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-flippy/
implementation ("org.webjars.bower:angular-flippy:2.0.6")
'org.webjars.bower:angular-flippy:jar:2.0.6'
<dependency org="org.webjars.bower" name="angular-flippy" rev="2.0.6">
  <artifact name="angular-flippy" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-flippy', version='2.0.6')
)
libraryDependencies += "org.webjars.bower" % "angular-flippy" % "2.0.6"
[org.webjars.bower/angular-flippy "2.0.6"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

# angular-flippy

AngularJS directive implementation with a CSS3 flip animation.

With v2.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

Install

  • npm: npm install angular-flippy
  • bower: bower install angular-flippy
  • add angular-flippy to your angular.module('your-webapp', ['angular-flippy', ...) dependencies

## Flippy Directive Parameters

<flippy
  class="fancy"
  flip="['click', 'mouseenter']"
  flip-back="['click', 'mouseleave']"
  duration="800"
  timing-function="ease-in-out">
</flippy>
  • class: fancy is an optional class to show some 3D-ness. (include ./css/flippy-fancy.min.css for this exemplary style)
  • flip: events that trigger the first flip. will only trigger if flip state is in opposite flip state.
  • flip-back: events that trigger the flip back. will only trigger if flip state is in opposite flip state.
  • 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)

## Events

There are two types of events accepted for the flip (first flip) and flip-back (flip back):

  • Every DOM event e.g. click, mouseenter, mouseleave, dblclick, ...
  • custom:XXX where XXX is the name of the broadcast event

Custom Events Example

// somewhere in your webapp
function buttonClicked() {
    $rootScope.$broadcast('FLIP_EVENT_IN');
}

// your directive
<flippy
    flip="['custom:FLIP_EVENT_IN']"
    flip-back="['custom:FLIP_EVENT_OUT']"
    duration="800"
    timing-function="ease-in-out">
</flippy>

Contribute

Just use gulp watch and hack away!

Versions

Version
2.0.6