Created
June 16, 2016 09:50
-
-
Save stefket/4f4d553f72bfd8ace6e1f8438cd02239 to your computer and use it in GitHub Desktop.
Bootstrap carousel transition
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-inner .item { | |
| opacity: 0; | |
| -webkit-transition-property: opacity; | |
| -moz-transition-property: opacity; | |
| -o-transition-property: opacity; | |
| transition-property: opacity; | |
| } | |
| .carousel-inner .active { | |
| opacity: 1; | |
| } | |
| .carousel-inner .active.left, | |
| .carousel-inner .active.right { | |
| left: 0; | |
| opacity: 0; | |
| z-index: 1; | |
| } | |
| .carousel-inner .next.left, | |
| .carousel-inner .prev.right { | |
| opacity: 1; | |
| } | |
| .carousel-control { | |
| z-index: 2; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment