Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

carousel interval work only one time when transition set none #1185

Closed
scarletsky opened this issue Oct 19, 2013 · 2 comments
Closed

carousel interval work only one time when transition set none #1185

scarletsky opened this issue Oct 19, 2013 · 2 comments

Comments

@scarletsky
Copy link
Contributor

see http://plnkr.co/edit/cleBHsUy6xMuumulb7Lw?p=preview
I just set interval to 1000 and add

    <style type="text/css" media="all">
        .carousel-inner > .item {
          -webkit-transition: none;
                  transition: none;
        }
    </style>

After that, interval only work one time.

@chrisirhc
Copy link
Contributor

Most likely due to the dependence on transition end events in the $transition service. Will be fixed when we update to use ngAnimate.

@matzipan
Copy link

I'm seeing the same symptoms with:


.carousel .item {
    opacity: 0;
    -webkit-transition: all 2s ease-in-out;
    -moz-transition: all 2s ease-in-out;
    -ms-transition: all 2s ease-in-out;
    -o-transition: all 2s ease-in-out;
    transition: all 2s ease-in-out;
    left: 0 !important;
}

.carousel .active {
    opacity: 1 !important;
}

.carousel .left {
    opacity: 0 !important;
    -webkit-transition: all 0.5s ease-in-out !important;
    -moz-transition: all 0.5s ease-in-out !important;
    -ms-transition: all 0.5s ease-in-out !important;
    -o-transition: all 0.5s ease-in-out !important;
    transition: opacity 0.5s ease-in-out !important;
}

.carousel .carousel-control {
    opacity: 1 !important;
}

and

<carousel interval="interval">
    <slide ng-repeat="slide in slides" active="slide.active">
        <a href="{{slide.url}}"><img ng-src="{{slide.image}}"></a>
    </slide>
</carousel>

@pkozlowski-opensource pkozlowski-opensource removed this from the 0.10.0 (AngularJS 1.2) milestone May 7, 2014
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Sep 15, 2014
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Sep 15, 2014
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Sep 15, 2014
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Mar 16, 2015
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Mar 17, 2015
@karianna karianna added this to the 0.13.0 milestone Mar 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants