Commit da044d9c authored by Hayden Bleasel's avatar Hayden Bleasel
Browse files

WebKit CSS3 carousel transforms for supported devices

parent 6d882a64
Showing with 23 additions and 0 deletions
+23 -0
...@@ -230,3 +230,26 @@ ...@@ -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;
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment