我一直试图在plunkr中复制以下的旋转木马 但没有这样做,我只是不明白它的CSS,就像“&”。还有很多括号 有没有办法帮助阅读这个?
源: https://codepen.io/mephysto/pen/ZYVKRY/
我的复制: http://plnkr.co/edit/5970D0m6hQrQDawSTOVo?p=preview
.multi-item-carousel{
.carousel-inner{
.active{
&.left{
left:-33%;
}
}
.next{
left: 33%;
}
.prev{
left: -33%;
}
@media all and (transform-3d), (-webkit-transform-3d) {
> .item{
// use your favourite prefixer here
transition: 500ms ease-in-out all;
backface-visibility: visible;
transform: none!important;
}
}
}
}