Created
July 11, 2016 13:37
-
-
Save akrug23/60a024f7911dfd5dd435f31eb3200283 to your computer and use it in GitHub Desktop.
Make Bootstrap carousel fade instead of slide
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
//make Bootstrap carousel fade instead of slide | |
.carousel-fade | |
{ | |
.carousel-inner | |
{ | |
.item | |
{ | |
transition-property: opacity; | |
} | |
.item, | |
.active.left, | |
.active.right | |
{ | |
opacity: 0; | |
} | |
.active, | |
.next.left, | |
.prev.right | |
{ | |
opacity: 1; | |
} | |
.next, | |
.prev, | |
.active.left, | |
.active.right | |
{ | |
left: 0; | |
transform: translate3d(0, 0, 0); | |
} | |
} | |
.carousel-control | |
{ | |
z-index: 2; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment