0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

CSS3 Carousel code formatting

This commit is contained in:
Hayden Bleasel 2014-07-08 09:49:08 +10:00
parent d6d8e204e6
commit 30d1236a1d

View File

@ -30,15 +30,20 @@
.transition-transform(~'0.6s ease-in-out');
.backface-visibility(~'hidden');
.perspective(1000);
&.next, &.active.right {
&.next,
&.active.right {
.translate3d(100%, 0, 0);
left: 0;
}
&.prev, &.active.left {
&.prev,
&.active.left {
.translate3d(-100%, 0, 0);
left: 0;
}
&.next.left, &.prev.right, &.active {
&.next.left,
&.prev.right,
&.active {
.translate3d(0, 0, 0);
left: 0;
}