Fixes #286 - fix navigation flash during resize.

master
Addy Osmani 2014-08-03 00:10:18 +01:00
parent 43823c998e
commit fc6149cdcf
2 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@
body.classList.toggle('open');
appbarElement.classList.toggle('open');
navdrawerContainer.classList.toggle('open');
navdrawerContainer.classList.add('opened');
}
main.addEventListener('click', closeMenu);

View File

@ -159,7 +159,7 @@ button.menu img {
transform: translate(0, 0);
}
.app-bar, .navdrawer-container, main {
.app-bar, .navdrawer-container.opened, main {
-webkit-transition: -webkit-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}