我有一個左側菜單,當用戶點擊漢堡時,它會滑入。它的背後是一個具有以下SCSS覆蓋:覆蓋層上的轉換
.overlay {
background-color: $glb-nav-80-opacity-white;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 200;
cursor: pointer;
}
.left-menu {
background: $glb-nav-dark-blue;
position: fixed;
overflow-x: hidden;
overflow-y: auto;
margin: 0;
padding: 0;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
transition: all 0.3s ease;
a:hover {
color: $glb-nav-white;
}
}
當人們點擊漢堡包菜單上,覆蓋突然出現了。我需要它淡入。我怎樣才能使用CSS?
這裏的HTML:
<div class="overlay"></div>
<div class="left-menu"></div>
當用戶打開left-menu
有-284px
左側位置的頁面。然後,當人們點擊圖標漢堡包,我一類添加到您的菜單做了設置其左側位置爲0