Last active
August 29, 2015 14:02
-
-
Save barbwiredmedia/8b5dacdefdca6d006ae0 to your computer and use it in GitHub Desktop.
Bootstrap Carousel. Add fade animation between slides (Does not work in - IE9) http://www.bootply.com/86170
This file contains 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
/*Add carousel-fade to carousel container*/ | |
.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