Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #379 from Shopify/drawer-animation
Browse files Browse the repository at this point in the history
Safer drawer transition implementation
  • Loading branch information
cshold committed Mar 31, 2015
2 parents f5f8f77 + a9baed2 commit a77f3a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions assets/timber.scss.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -2026,21 +2026,17 @@ label.error {
}

.is-moved-by-drawer {
@include transition($drawerTransition);

.js-drawer-open-left & {
@include transform(translateX($drawerNavWidth));
@include transition($drawerTransition);
}

.js-drawer-open-right & {
@include transform(translateX(-$drawerCartWidth));
@include transition($drawerTransition);
}
}

.is-moved-by-drawer.is-transitioning {
@include transition($drawerTransition);
}

.drawer__header {
display: table;
height: 70px;
Expand Down

0 comments on commit a77f3a8

Please sign in to comment.