Questions tagged [ng-animate]

The ngAnimate module provides support for CSS-based animations (keyframes and transitions) as well as JavaScript-based animations via callback hooks. Animations are not enabled by default, however, by including ngAnimate then the animation hooks are enabled for an AngularJS app.

Usage

Simply put, there are two ways to make use of animations when ngAnimate is used: by using CSS and JavaScript. The former works purely based using CSS (by using matching CSS selectors/styles) and the latter triggers animations that are registered via module.animation(). For both CSS and JS animations the sole requirement is to have a matching CSS class that exists both in the registered animation and within the HTML element that the animation will be triggered on.

Reference - AngularJS ngAnimate docs.

Tutorial - How to use AngularJS with NgAnimate

Github - https://github.com/angular/angular.js/tree/master/src/ngAnimate

NPM package - https://www.npmjs.com/package/ng-animate

From Wikipedia

ng-animate

A module provides support for JavaScript, CSS3 transition and CSS3 keyframe animation hooks within existing core and custom directives.

Since ng-* attributes are not valid in HTML specifications, data-ng-* can also be used as a prefix. For example, both ng-app and data-ng-app are valid in AngularJS.

648 questions
-1
votes
1 answer

ngAnimate enter function doesnt fire

I'm trying to creating a basic javascript animation with ngAnimate, but the event / animation doesn't fire when an element is added. Essentially, I'm adding an element with a class test on click, which should change its color to green. But the color…
agconti
  • 17,780
  • 15
  • 80
  • 114
-2
votes
1 answer

How to animate ng-repeat loops without using ng-animate?

I'm working on a project where I cannot use ng-animate in certain situations due to the way the angular apps are bootstrapped. Therefore, I've been trying to figure out a way to animate the ng-repeat loops using regular Jquery/CSS animations. Is…
Juliano
  • 443
  • 1
  • 5
  • 16
-2
votes
1 answer

NgAnimate - My Modal Show Hide Not Working due to NGAnimate

Hi I am using one small directive for hide and show bootstrap modal from controller which was working fine when i was not using ngAnimate. But after inclusing ngAnimate it shows element.modal is not a function below is my…
AngularDev
  • 144
  • 1
  • 10
1 2 3
43
44