ng-animate

Animating ng-move in AngularJS ngRepeat is animating the wrong items

故事扮演 提交于 2019-12-03 12:01:06
I'm a little flummoxed when it comes to animating ng-move in an ng-repeat. If I move an array item from 3 to 7 for instance, items 4-7 get shifted up and they animate. However the actual item I moved from 3 and placed in position 7, does not. Here's a plunkr demonstrating my issue. http://plnkr.co/edit/4yRkLWbsU57YxrYOrWUQ?p=preview Moving item 7 to 3, however, works as I expect, animating the single moved item, and not the items that have been pushed down. This is not very useful for showing a user what moved. How should someone properly animate an ng-move? antoine @tasseKat has an excellent

AngularJS 1.2 - ngAnimate not working

给你一囗甜甜゛ 提交于 2019-12-03 07:42:24
问题 I am new to using ng-animate with AngularJS 1.2. I am not sure why my ng-animate does not work a certain class name but works with the default for a simple fade in that I saw in an example. In this example, I try to set my ng-animate class to be 'animation': http://plnkr.co/edit/QWQUUVdcLmzLKRvVibqN?p=preview but when I use the default, and my class name for animations is just ".ng-enter" and ".ng-leave", the fade in animation seems to work fine. http://plnkr.co/edit/lEQhMwd6RWmsdmJbosu0?p

AngularJS animation card flip

流过昼夜 提交于 2019-12-03 06:15:47
I am trying to use the new AngularJS way of doing animations between page transitions and would like to incorporate a card flip (like http://jsfiddle.net/nicooprat/GDdtS/ ) body { background: #ccc; } .flip { -webkit-perspective: 800; width: 400px; height: 200px; position: relative; margin: 50px auto; } .flip .card.flipped { -webkit-transform: rotatex(-180deg); } .flip .card { width: 100%; height: 100%; -webkit-transform-style: preserve-3d; -webkit-transition: 0.5s; } .flip .card .face { width: 100%; height: 100%; position: absolute; -webkit-backface-visibility: hidden ; z-index: 2; font-family

How to delay ngAnimate in ngRepeat

孤街醉人 提交于 2019-12-03 03:59:10
问题 When using ngAnimate to fade in each item in ngRepeat, currently all items fade in at the same time. Is it possible for each item to fade in after the previous item has faded to e.g. 50% resulting in a cascading effect? <ul> <li ng-repeat="phone in phones" ng-animate="{enter: 'phone-fade-enter'}"> <img src="{{phone.img}}"> {{phone.name}} </li> </ul> Using ngAnimate it would be nice if it would be possible to delay the animation of each item e.g. like this: <li ng-repeat="phone in phones" ng

Can't trigger animation on nested ngRepeat

浪子不回头ぞ 提交于 2019-12-03 00:38:52
I can't figure out how to trigger animations on a nested ngRepeat with Angular. The CSS class ".test" is animated. When using ".test" on the inner ngRepeat it doesn't work ( Plunker ): <div ng-repeat="section in sections"> <div ng-repeat="item in section.items" class="test"> <h2>{{item.title}}</h2> </div> </div> When using ".test" on the outer ngRepeat it does work ( Plunker ): <div ng-repeat="section in sections"> <div ng-repeat="item in section.items" class="test"> <h2>{{item.title}}</h2> </div> </div> You probably need to add ngAnimateChildren attribute on the parent container, and update

sliding between route transition angularjs

心已入冬 提交于 2019-12-02 22:09:12
I've only been working with Angular for about a week, so I apologize if my code is crap. I'm attempting to create a sliding action between route transitions. I can create the effect in a slideshow but not between route transitions. Anyway code below: Nav <li><a ng-click="go('/')" class = "intro currentLink navLinks">Intro</a></li> <li><a ng-click="go('/why')" class = "why navLinks">Why</a></li> <li><a ng-click="go('/resume')" class = "resume navLinks">Res</a></li> <li><a ng-click="go('/qualified')" class = "qualified navLinks">How</a></li> <li><a ng-click="go('/contact')" class = "contact

ng-repeat animation complete callback

时光毁灭记忆、已成空白 提交于 2019-12-02 21:51:56
问题 So I have a simple ng-repeat with enter animation defined in javascript. Sandbox: http://codepen.io/anri82/pen/KwgGeY Code: <div ng-app="myApp" ng-controller="MyController"> {{state}} <ul> <li class="repeat-animate" ng-repeat="item in list">{{item}}</li> </ul> <button ng-click="add()">add</button> </div> angular.module('myApp', ['ngAnimate']) .controller("MyController", function($scope) { $scope.state ="idle"; $scope.id=3; $scope.list = [1,2]; $scope.add = function () { $scope.state="pushing"

Angular Animate slide pages in from right and out to right side (nganimate)

。_饼干妹妹 提交于 2019-12-02 17:16:38
问题 I'm working on a school project using Angular.js. We also have to implement some animations in our website. Since my website is kind of master-detail, I would like to slide the detail page (which is a separately routed page) to slide in from right. This is not really a problem. But when I would go back to the 'master' page the master page would slide in from right. I'd much rather like the master page to slide in from left. Is there any way to get a specific ng-view animation depending on the

How to delay ngAnimate in ngRepeat

亡梦爱人 提交于 2019-12-02 16:19:43
When using ngAnimate to fade in each item in ngRepeat, currently all items fade in at the same time. Is it possible for each item to fade in after the previous item has faded to e.g. 50% resulting in a cascading effect? <ul> <li ng-repeat="phone in phones" ng-animate="{enter: 'phone-fade-enter'}"> <img src="{{phone.img}}"> {{phone.name}} </li> </ul> Using ngAnimate it would be nice if it would be possible to delay the animation of each item e.g. like this: <li ng-repeat="phone in phones" ng-animate="{enter: 'phone-enter', delay: 500}"> Is there a way to solve this? Thanks! Added to GitHub

Angular Animate slide pages in from right and out to right side (nganimate)

拈花ヽ惹草 提交于 2019-12-02 11:37:23
I'm working on a school project using Angular.js. We also have to implement some animations in our website. Since my website is kind of master-detail, I would like to slide the detail page (which is a separately routed page) to slide in from right. This is not really a problem. But when I would go back to the 'master' page the master page would slide in from right. I'd much rather like the master page to slide in from left. Is there any way to get a specific ng-view animation depending on the page? I'd like to use CSS animations but that's more of a detail. I'm working with an index.html page