angular-animate-change
Angular directive for applying an animation class to an element whenever a value changes. Useful for applying attention-calling animation like flashes or shakes.
Installing
$ npm install angular-animate-change
$ bower install angular-animate-change
Setup
angular.module('myApp', [
require('angular-animate-change')
]);
angular.module('myApp', [
'angular-animate-change'
]);
API
animateChange
(directive)
<span animate-change="value" change-class="flash"></span>
When $scope.value
changes, the class 'flash'
will be added. Animation classes will applied during the transition.