Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benjamincharity/angular-disable-animate

:no_entry_sign: An AngularJS directive that disables ng-animate on selected elements.
https://github.com/benjamincharity/angular-disable-animate

angularjs disable-animate

Last synced: 28 days ago
JSON representation

:no_entry_sign: An AngularJS directive that disables ng-animate on selected elements.

Awesome Lists containing this project

README

        

# angular-disable-animate

> An Angular directive that disables ng-animate.

In the past I have needed a way to easily disable Angular's `$animate` for a specific element. This
tiny directive is the result of that need and the dislike for copy & pasting code across projects.

Further reading: [$animate documentation][animate_docs]

- - -

_[Comments and pull requests welcome!][issues]_

## Installation

```bash
$ bower install angular-disable-animate --save
$ npm install angular-disable-animate --save
```

Or

Include the JavaScript file in the head of your document:

```html

```

## Usage

Include the module as a dependency of your application:

```javascript
angular.module('myModule', ['bc.AngularDisableAnimate']);
```

Use directive as an attribute:

```html

Foo

```

### Scripts

* `npm run build` - produces production version of your library under the `dist` folder
* `npm run watch` - produces development version of your library under the `dist` folder and runs a
watcher

[animate_docs]: https://docs.angularjs.org/api/ng/service/$animate
[issues]: https://github.com/benjamincharity/angular-disable-animate/issues