Skip to content

Instantly share code, notes, and snippets.

@bnferguson
Created July 20, 2012 13:59
Show Gist options
  • Save bnferguson/3150875 to your computer and use it in GitHub Desktop.
Save bnferguson/3150875 to your computer and use it in GitHub Desktop.
.carousel.carousel-fade .item {
-webkit-transition: opacity 2s ease-in-out;
-moz-transition: opacity 2s ease-in-out;
-ms-transition: opacity 2s ease-in-out;
-o-transition: opacity 2s ease-in-out;
transition: opacity 2s ease-in-out;
}
.carousel.carousel-fade .active.left,
.carousel.carousel-fade .active.right {
left: 0;
z-index: 2;
opacity: 0;
filter: alpha(opacity=0);
}
.carousel.carousel-fade .next,
.carousel.carousel-fade .prev {
left: 0;
z-index: 1;
}
.carousel.carousel-fade .carousel-control {
z-index: 3;
}​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment