Skip to content

Instantly share code, notes, and snippets.

@fotan
Last active April 26, 2016 02:47
Show Gist options
  • Save fotan/e0f56baee535aed88c5dfe68edd6a702 to your computer and use it in GitHub Desktop.
Save fotan/e0f56baee535aed88c5dfe68edd6a702 to your computer and use it in GitHub Desktop.
BS3 - Carousel Fade Effect
/* 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