Created
June 19, 2014 18:17
-
-
Save jdcauley/6e92c7ea60805908888e to your computer and use it in GitHub Desktop.
Bootstrap Carousel Fade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.carousel-fade .carousel-inner .item { | |
opacity: 0; | |
-webkit-transition-property: opacity; | |
-moz-transition-property: opacity; | |
-o-transition-property: opacity; | |
transition-property: opacity; | |
} | |
.carousel-fade .carousel-inner .active { | |
opacity: 1; | |
} | |
.carousel-fade .carousel-inner .active.left, | |
.carousel-fade .carousel-inner .active.right { | |
left: 0; | |
opacity: 0; | |
z-index: 1; | |
} | |
.carousel-fade .carousel-inner .next.left, | |
.carousel-fade .carousel-inner .prev.right { | |
opacity: 1; | |
} | |
.carousel-fade .carousel-control { | |
z-index: 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment