angular-flippy

WebJar for angular-flippy

Лицензия

Лицензия

MIT
Категории

Категории

Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

angular-flippy
Последняя версия

Последняя версия

2.0.6
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-flippy
WebJar for angular-flippy
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать angular-flippy

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

# 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!

Версии библиотеки

Версия
2.0.6