Commit 30d1236a authored by Hayden Bleasel's avatar Hayden Bleasel
Browse files

CSS3 Carousel code formatting

parent d6d8e204
Showing with 8 additions and 3 deletions
+8 -3
...@@ -30,15 +30,20 @@ ...@@ -30,15 +30,20 @@
.transition-transform(~'0.6s ease-in-out'); .transition-transform(~'0.6s ease-in-out');
.backface-visibility(~'hidden'); .backface-visibility(~'hidden');
.perspective(1000); .perspective(1000);
&.next, &.active.right {
&.next,
&.active.right {
.translate3d(100%, 0, 0); .translate3d(100%, 0, 0);
left: 0; left: 0;
} }
&.prev, &.active.left { &.prev,
&.active.left {
.translate3d(-100%, 0, 0); .translate3d(-100%, 0, 0);
left: 0; left: 0;
} }
&.next.left, &.prev.right, &.active { &.next.left,
&.prev.right,
&.active {
.translate3d(0, 0, 0); .translate3d(0, 0, 0);
left: 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