Carousel strange transition [bootstrap 3]
I've made video that show behaviour (angular 1.2.3).
https://dl.dropboxusercontent.com/u/21598387/AngularUI_Bootstrap3_carousel.mov
Thanks for the solution. but is there any update on this? will be fixed soon?
Interesting enough, I was adding a simple css transition yesterday and needed to add the disable-ng-animate to make it work right.
It's a handy enough directive. On 9 Sep 2014 15:23, "Raúl Gomis" [email protected] wrote:
Thanks for the solution. but is there any update on this? will be fixed soon?
— Reply to this email directly or view it on GitHub https://github.com/angular-ui/bootstrap/issues/1350#issuecomment-54976145 .
Thanks for the workaround! This is such an annoying ~~bug~~ feature, very hard to find.
Hi, it doesn't work if I have a ng-show:
<carousel ng-show="promos.length > 1" disable-ng-animate>
<slide ng-repeat="promo in promos">
<img ng-if="!promo.containsUrl()" ng-src="{{promo.image}}" alt="{{promo.title}}" />
<a ng-if="promo.containsUrl()" ng-href="{{promo.url}}" ng-click="bannerClick(promo.pid)"><img ng-src="{{promo.image}}" alt="{{promo.title}}" /></a>
</slide>
</carousel>
If I remove ng-show, the workaround works...
Any ideas to fix my scenario?
Wrap it in an outer div. That has the ng-show on it. On 23/12/2014 10:56 pm, "Joberto Diniz" [email protected] wrote:
Hi, it doesn't work if I have a `ng-show´:
![]()
![]()
If I remove ng-show, the workaround works... Any ideas to fix my scenario?
— Reply to this email directly or view it on GitHub https://github.com/angular-ui/bootstrap/issues/1350#issuecomment-67944298 .
Yeah.. this works. Thanks.
I think the problem may come from the priority option in $compile service. ngShow use the default one which is 0.
Try set the priority option in disable-ng-animate directive to something which is either greater or below 0 and see if this would fix the problem
Thank you @simonykq, that fixed the issue I was experiencing.
BTW, I'm using:
- angularUI#0.12.0
- angular#1.3.8
- angular-animate#1.3.8
Hi there,
I'm using Angular 1.3.2, Bootstrap 3.x.
On safari, the workaround doesn't fix the issue.
The carousel is loaded, I can only click once on next/prev, then nothing else happen. Something strange, the next/prev slide is shown, but the first is still on the page.
Here is my first slide, before I click next, on the left, 99 is the ID of this picture.

And here is the second slide, after I click next, on the left, you can see the ID of this picture, but still the ID of the previous one.

Here is the directive
.directive('disableNgAnimate', ['$animate',
function ($animate) {
return {
restrict: 'A',
link: function (scope, element) {
$animate.enabled(false, element);
}
};
}]);
Any idea ?
Thanks a lot
I think I'm suffering the same issue. In my case, when i press next or prev arrows sometimes I got the slide to change once, sometimes it doesn't event change. Same behavior in Chrome/Safari. It started to happen when I added ngAnimate to the project.
Can we add a note about this ngAnimate + ui.bootstrap incompatibility to the FAQ? I just ran into this issue and it was a real pain to figure out. I ended up going with the fix @simonykq provided (thanks Simon!).
@bentleyo Know that feeling. Just went through the same tough process :(
+1 for adding a line to the docs and mentioning the workaround (disabling ng-animate completely or only for the directive).
I have a similar, but different problem. When slides scroll top part of pictures disappears. This happens only in (latest) Firefox. http://kulturfokus.eu/en/projekte/aufsteinernenspuren
@simonykq thanks!
@simonykq thanks!!! I lost almost a day trying to resolve this!
This can also be remedied by specifying a specific prefix when configuring your app.
angular.module('fooMod',['ngAnimate']).config(function($animateProvider) {
$animateProvider.classNameFilter(/prefix-/);
...
We had an issue with the carousel after adding another library that required ngAnimate. This library uses CSS classes that begin with anim- so we configured our animate provider with that:
$animateProvider.classNameFilter(/anim-/);
This tells ngAnimate to only animate classes that begin with anim-.
See https://docs.angularjs.org/api/ngAnimate 'Preventing Collisions With Third Party Libraries' for more details.
The work around doesn't seem to work when you are displaying carousel in $modal. My animate provider is configured like so:
$animateProvider.classNameFilter(/(app-repeated-item)|(modal)/); // The modal inside the definition fixes https://github.com/angular-ui/bootstrap/issues/3647
When I remove the class name filter, arrws on carousel seems to work fine.
@simonykq solutions doesn't seem to work in this scenario. It seems absurd that ui-bootstrap which is pure angular implementation of bootstrap components, doesn't work with core angular modules.
I fall-backed using native bootstrap components that works out of the box.
@simonykq Thanks man, save my day :)
Hi, I've used the disableNgAnimate but in my case the carousel directive is only toggling the 'active' class, not adding/removing the others used for animation, this means the slides only toggle but do not animate.
I'm using "angular": "^1.3.0" with "angular-bootstrap": "~0.13.0".
Any ideas how to fix this?
EDIT: Nevermind, I found that I was using 1.4 and it's still not supported by angular-ui. Rolled back to 1.3.16 and everything is working again.