Last active
December 29, 2015 17:19
-
-
Save blackfyre/7703612 to your computer and use it in GitHub Desktop.
A vertical carousel modifcation for Twitter Bootstrap 3
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
.vertical .carousel-inner { | |
height: 100%; | |
} | |
.carousel.vertical .item { | |
-webkit-transition: 0.6s ease-in-out top; | |
-moz-transition: 0.6s ease-in-out top; | |
-ms-transition: 0.6s ease-in-out top; | |
-o-transition: 0.6s ease-in-out top; | |
transition: 0.6s ease-in-out top; | |
} | |
.carousel.vertical .active { | |
top: 0; | |
} | |
.carousel.vertical .next { | |
top: 400px; | |
} | |
.carousel.vertical .prev { | |
top: -400px; | |
} | |
.carousel.vertical .next.left, | |
.carousel.vertical .prev.right { | |
top: 0; | |
} | |
.carousel.vertical .active.left { | |
top: -400px; | |
} | |
.carousel.vertical .active.right { | |
top: 400px; | |
} | |
.carousel.vertical .item { | |
left: 0; | |
} | |
.carousel.vertical .carousel-control { | |
width: 100%; | |
bottom: inherit; | |
top: inherit; | |
} | |
.carousel.vertical .carousel-control.left { | |
top: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original was fount @ http://stackoverflow.com/a/11596944/1012431