我试图改变引导3旋转木马的滑动效果来淡入淡出.我按照
Can the Twitter Bootstrap Carousel plugin fade in and out on slide transition给出的指示
.carousel .item { -webkit-transition: opacity 3s; -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; }
我的示例链接是在这个pagragraph的结尾,我正在做,但问题是以前的按钮不能正常工作,可能是解决方案是完美的bootstrap2,我使用bootstrap3,可以有人帮助我吗?感谢您的帮助.我是新来的,非常抱歉我的英文不好,如果我问一个愚蠢的问题!
https://dl.dropboxusercontent.com/u/35758776/xenxbd/contrastic/index.html#parallux-wrapper-04
解决方法
尝试这个旋转木马淡出的例子.它将显示如何更改上一个和下一个按钮的不透明度.
.carousel-fade .carousel-inner .item { opacity: 0; -webkit-transition-property: opacity; -moz-transition-property: opacity; -o-transition-property: opacity; transition-property: opacity; } .carousel-fade .carousel-inner .active { opacity: 1; } .carousel-fade .carousel-inner .active.left,.carousel-fade .carousel-inner .active.right { left: 0; opacity: 0; z-index: 1; } .carousel-fade .carousel-inner .next.left,.carousel-fade .carousel-inner .prev.right { opacity: 1; } .carousel-fade .carousel-control { z-index: 2; }