ng-animate

ngAnimate breaks existing ui.bootstrap.carousel

左心房为你撑大大i 提交于 2019-12-11 19:38:54
问题 I have this current app.js angular.module('app', ['ngRoute', 'ngSanitize', 'ui.bootstrap','ui.router', 'com.2fdevs.videogular', 'com.2fdevs.videogular.plugins.controls', 'com.2fdevs.videogular.plugins.overlayplay', 'com.2fdevs.videogular.plugins.poster', 'com.2fdevs.videogular.plugins.buffering', 'ngDraggable','angular-loading-bar', 'chart.js', 'angularSpinner']) and I include the needed javascript files in my index.html <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2

ng-animate is not working in android WebView of Samaung Galaxy S4

◇◆丶佛笑我妖孽 提交于 2019-12-11 12:56:30
问题 I'm trying to implement an animation with ng-animate for a button in an Android hybrid app in which I use WebView . The animated button is like this: <div class="dish-like dish-like-animater"> <img ng-hide="page.liked" class="dish-like-unliked" src="http://dev.fotodish.com/img/dish_like_icon@2x.png" ng-click="Like()"> <img ng-show="page.liked" class="dish-like-liked-up" src="http://dev.fotodish.com/img/dish_liked_bg@2x.png"> <img ng-show="page.liked" class="dish-like-liked-down" src="http:/

Enter animation not playing in Angular

谁都会走 提交于 2019-12-11 09:27:15
问题 I'm wondering how could I animate an element when the angular app is starting. Indeed, I see (I'm maybe doing something wrong) that the animation module is not triggering the "enter" event the first time, but after everything goes fine. How could I animate it without rewriting all the code I have in my animation module somewhere else ? You can see on my fiddle that the li is green at first glance, when I need it to be blue as defined in my enter animation. I don't know if it only occurs in my

Can I limit a CSS animation to play only once when toggling a class on the same element defining a different animation?

限于喜欢 提交于 2019-12-11 00:17:55
问题 Basically I'm trying to show an animation on certain elements that were affected in a "most recent action". After this animation completes it shouldn't play again. The problem I have at the moment is that I also define an animation which runs when the element(s) are "selected". When the element is deselected the original animation plays again, even if the animation-iteration-count of 1 has been reached. I could certainly set up an event listener for when animationend fires and then remove the

AngularJS only first element in ng-repeat animates

人盡茶涼 提交于 2019-12-10 19:42:57
问题 For some reason using the code below, ngRepeat only animates the first item and displays the rest instantly. As soon as the scope.categories item is updated the ng-repeat is triggered in the template. dataSource.getCategories() .then(function(categories) { $scope.categories = categories; }, function(message) { dataSource.setActivity(false, message); }); But if I change the code to the one below and add <a ng-click="start()">Start</a> in the page, it works. Yes, I have tried $timeout, even up

uncaught object error: can't inject ngAnimate

℡╲_俬逩灬. 提交于 2019-12-10 15:00:04
问题 I can't instantiate my app when I try to inject 'ngAnimate' like so: var app = angular.module('musicsa', [ 'ngCookies', 'ngResource', 'ngSanitize', 'ui.router', 'firebase', 'ngAnimate' ]) I get an error Uncaught object from angular.js line 78 I installed ngAnimate using bower. Here's my bower.json : { "name": "ang-changeorg", "version": "0.0.0", "dependencies": { "angular": "1.2.6", "json3": "~3.2.6", "es5-shim": "~2.1.0", "jquery": "~1.10.2", "bootstrap": "~3.0.3", "angular-resource": "1.2.6

ngAnimate 1.4.7 unit test not calling animation functions

南楼画角 提交于 2019-12-10 12:32:34
问题 I've been working from this tutorial and have Googled ad nauseum, but I can't seem to get what appears to be a trivial ngAnimate unit test running. I have ngAnimate working well in the app. All Angular core libraries are version 1.4.7. Module angular.module 'MyAnimation', [ 'ngAnimate' ] .animation '.added-class', -> addClass: (element, className, done) -> console.log 'add class triggered' element.css 'opacity', '0.5' done() Test describe 'MyAnimation', -> beforeEach -> module 'ngAnimate'

Angular js - slide views but not home page - ng-animate

雨燕双飞 提交于 2019-12-09 16:28:33
问题 i'm using ng-animate to slide the app views, so each route slides own view , this is my simple code: html: <div ng-view ng-animate class="slide"></div> css: /*Animations*/ .slide{ left:0; } .slide.ng-enter{ transition:0.15s linear all; position:fixed; z-index:inherit; left:-100%; height:inherit; } .slide.ng-leave{ transition:0.15s linear all; position:fixed; z-index:9999; right:0; } .slide.ng-leave-active{ transition:0.15s linear all; position:fixed; right:-100%; left:100%; } .slide.ng-enter

How can I animate the movement of remaining ng-repeat items when one is removed?

。_饼干妹妹 提交于 2019-12-08 23:44:08
问题 I have a dynamic list of items using ng-repeat. When something happens an item may disappear. I have handled smoothly animating the removal of these items using ng-animate, but after they are gone, the remaining items simply snap to their new position. How can I animate this movement smoothly? I've tried applying an "all" transition to the repeated class and using ng-move with no success. 回答1: You can achieve this by animating the max-height property. Check out this sample: http://jsfiddle

Why is ng-class based ng-animate transition not working?

。_饼干妹妹 提交于 2019-12-08 06:13:48
问题 This is a heavily simplified demo of ng-class animation using transition that I'm trying to achieve. I'm trying to create a simple fade in animation when an item is selected. Selecting an item will add a selected class on it using ng-class directive. I'm trying to add a transition to it following the documentation with the animation hook classes added by ng-animate . Below is the code I have so far. It sets the opacity to 0 along with the transition property, and when the .selected-add-active