🚫 An Angular directive that disables ng-animate on selected elements.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.babelrc
.eslintignore
.eslintrc
.gitignore
CODE_OF_CONDUCT.md
LICENSE
README.md
bower.json
package.json
webpack.config.js

README.md

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


Comments and pull requests welcome!

Installation

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

Or

Include the JavaScript file in the head of your document:

<script src="angular-disable-animate.js"></script>

Usage

Include the module as a dependency of your application:

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

Use directive as an attribute:

<div bc-disable-animate>Foo</div>

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