Skip to content

Commit

Permalink
Switches to using left instead of scale
Browse files Browse the repository at this point in the history
  • Loading branch information
supernova-at committed Jul 10, 2020
1 parent 9283d06 commit 7dc4fe6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/venia-ui/lib/components/MiniCart/miniCart.css
@@ -1,7 +1,7 @@
.root {
/* The root aside element takes up the whole screen. */
position: fixed;
left: 0;
left: 100vw;
top: 0;
height: 100%;
width: 100%;
Expand All @@ -11,7 +11,6 @@
visibility: hidden;

/* It animates to being closed. */
transform: scale(0);
transition-duration: 192ms;
transition-timing-function: var(--venia-global-anim-out);
transition-property: opacity, visibility;
Expand All @@ -23,11 +22,11 @@
.root_open {
composes: root;

left: 0;
opacity: 1;
visibility: visible;

/* It animates to being open. */
transform: scale(1);
transition-duration: 224ms;
transition-timing-function: var(--venia-global-anim-in);
}
Expand Down

0 comments on commit 7dc4fe6

Please sign in to comment.