mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
WebKit CSS3 carousel transforms for supported devices
This commit is contained in:
parent
6d882a6420
commit
da044d9c69
@ -230,3 +230,26 @@
|
|||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WebKit CSS3 transforms for supported devices
|
||||||
|
@media all and (-webkit-transform-3d) {
|
||||||
|
.carousel {
|
||||||
|
.item {
|
||||||
|
-webkit-transition: 0.6s -webkit-transform ease-in-out;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
-webkit-perspective: 1000;
|
||||||
|
&.next, &.active.right {
|
||||||
|
-webkit-transform: translate3d(100%,0,0);
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
&.prev, &.active.left {
|
||||||
|
-webkit-transform: translate3d(-100%,0,0);
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
&.next.left, &.prev.right, &.active {
|
||||||
|
-webkit-transform: translate3d(0%,0,0);
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user