Created
April 8, 2013 11:22
-
-
Save gu-fan/5336055 to your computer and use it in GitHub Desktop.
Overriding Bootstrap Carousel Animation with css3
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
.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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple and effective, great job !