Skip to content

Instantly share code, notes, and snippets.

@gu-fan
Created April 8, 2013 11:22
Show Gist options
  • Save gu-fan/5336055 to your computer and use it in GitHub Desktop.
Save gu-fan/5336055 to your computer and use it in GitHub Desktop.
Overriding Bootstrap Carousel Animation with css3
.carousel .item {
-webkit-transition: .7s ease-in-out opacity;
-moz-transition: .7s ease-in-out opacity;
-ms-transition: .7s ease-in-out opacity;
-o-transition: .7s ease-in-out opacity;
transition: .7s ease-in-out opacity;
left: 0 !important;
}
.carousel .active.left, .carousel .active.right {
opacity: 0;
z-index: 2;
}
/* ...and only if you're using the prev/next buttons */
.carousel .next.left, .carousel .prev.right {
opacity: 1;
z-index: 1;
}
@cvng
Copy link

cvng commented Aug 29, 2014

Simple and effective, great job !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment