Created
April 7, 2016 15:46
-
-
Save theJasonJones/f5e3c4584bc04e91c7fe84ce8f3daec6 to your computer and use it in GitHub Desktop.
Carousel LESS used to make the BS slider fade from slide to slide.
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-fade { | |
.carousel-inner { | |
.item { opacity:0; .transition-property(opacity); } | |
.active { opacity:1; } | |
.active.left, | |
.active.right { left:0; opacity:0; z-index:1; } | |
.next.left, | |
.prev.right { opacity:1; } | |
} | |
.carousel-control { z-index:2; text-shadow: none; } | |
@media all and (transform-3d), (-webkit-transform-3d) { | |
.carousel-inner > .item.next, | |
.carousel-inner > .item.active.right { .translate3d(0, 0, 0); } | |
.carousel-inner > .item.prev, | |
.carousel-inner > .item.active.left { .translate3d(0, 0, 0); } | |
.carousel-inner > .item.next.left, | |
.carousel-inner > .item.prev.right, | |
.carousel-inner > .item.active { .translate3d(0, 0, 0); } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment