fix(empty-state): Subpixel animation via translate3d

This commit is contained in:
Ben Gotow 2015-10-21 14:52:45 -07:00
parent 05e24838bd
commit 2afbc0a6bd

View file

@ -76,30 +76,34 @@
.top-left { .top-left {
-webkit-transition: all @duration ease-out; -webkit-transition: all @duration ease-out;
transform: translate3d(-20px, -10px, 0);
position:absolute; position:absolute;
top:-10px; top:0;
left:-20px; left:0;
} }
.top-right { .top-right {
-webkit-transition: all @duration ease-out; -webkit-transition: all @duration ease-out;
transform: translate3d(20px, -10px, 0);
position:absolute; position:absolute;
top:-10px; top:0;
right:-20px; right:0;
} }
.bottom-left { .bottom-left {
-webkit-transition: all @duration ease-out; -webkit-transition: all @duration ease-out;
transform: translate3d(-20px, 10px, 0);
position:absolute; position:absolute;
bottom:-10px; bottom:0;
left:-20px; left:0;
} }
.bottom-right { .bottom-right {
-webkit-transition: all @duration ease-out; -webkit-transition: all @duration ease-out;
transform: translate3d(20px, 10px, 0);
position:absolute; position:absolute;
bottom:-10px; bottom:0;
right:-20px; right:0;
} }
} }
@ -116,23 +120,19 @@
} }
.top-left { .top-left {
top:0; transform: translate3d(0, 0, 0);
left:0;
} }
.top-right { .top-right {
top:0; transform: translate3d(0, 0, 0);
right:0;
} }
.bottom-left { .bottom-left {
bottom:0; transform: translate3d(0, 0, 0);
left:0;
} }
.bottom-right { .bottom-right {
bottom:0; transform: translate3d(0, 0, 0);
right:0;
} }
} }
} }