An Angular directive that disables ng-animate on selected elements.

angular-disable-animate

angular-disable-animate

Stars : 10

Forks : 10

Created by Benjamin Charity

bower install angular-disable-animate

Demo Download GitHub

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

Javscript

Javascript plugin

Angular-js