Last active
April 26, 2016 02:47
-
-
Save fotan/e0f56baee535aed88c5dfe68edd6a702 to your computer and use it in GitHub Desktop.
BS3 - Carousel Fade Effect
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
/* Overwrites stock transition with CSS3 fade */ | |
.carousel .item { | |
-webkit-transition: opacity 3s; /* Adjust timing */ | |
-moz-transition: opacity 3s; | |
-ms-transition: opacity 3s; | |
-o-transition: opacity 3s; | |
transition: opacity 3s; | |
} | |
.carousel .active.left { | |
left:0;opacity:0;z-index:2; | |
} | |
.carousel .next { | |
left:0;opacity:1;z-index:1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment