Last active
March 20, 2017 18:42
-
-
Save bkaminski/487f2e495b64793b504adb0340c2100f to your computer and use it in GitHub Desktop.
Bootstrap 4 Alpha 6 Vertical Carousel
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 for Bootstrap 4 Alpha 6 */ | |
.vert .carousel-item-next.carousel-item-left, | |
.vert .carousel-item-prev.carousel-item-right { | |
-webkit-transform: translate3d(0, 0, 0); | |
transform: translate3d(0, 0, 0); | |
} | |
.vert .carousel-item-next, | |
.vert .active.carousel-item-right { | |
-webkit-transform: translate3d(0, 100%, 0); | |
transform: translate3d(0, 100% 0); | |
} | |
.vert .carousel-item-prev, | |
.vert .active.carousel-item-left { | |
-webkit-transform: translate3d(0,-100%, 0); | |
transform: translate3d(0,-100%, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first line of the Carousel HTML needs the .vert class added to it:
<div id="carouselExampleIndicators" class="carousel vert slide" data-ride="carousel">