Skip to content

Commit

Permalink
add mobile desktop transition animation from right side
Browse files Browse the repository at this point in the history
  • Loading branch information
goldipl committed Jun 28, 2024
1 parent d699674 commit d89b70b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions sass/common/_mobile_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,10 @@ html.body-locked {
height: 10px;
}
.mobile-menu {
display: none;
display: flex;
position: fixed;
top: 0;
right: calc((100vw - 1728px) / 2);
right: -200vw;
width: 480px;
height: 100vh;
background-color: $white;
Expand All @@ -730,7 +730,7 @@ html.body-locked {
transition: 0.4s;
overflow: hidden;
&.active {
display: flex;
right: calc((100vw - 1728px) / 2);
}
&-wrapper {
&__content {
Expand Down
6 changes: 3 additions & 3 deletions sass/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3167,10 +3167,10 @@ html.body-locked {
height: 10px;
}
.header-2-0 .mobile-menu {
display: none;
display: flex;
position: fixed;
top: 0;
right: calc((100vw - 1728px) / 2);
right: -200vw;
width: 480px;
height: 100vh;
background-color: #ffffff;
Expand All @@ -3180,7 +3180,7 @@ html.body-locked {
overflow: hidden;
}
.header-2-0 .mobile-menu.active {
display: flex;
right: calc((100vw - 1728px) / 2);
}
.header-2-0 .mobile-menu-wrapper__content .second-lvl-menu-wrapper,
.header-2-0 .mobile-menu-wrapper__content .menu-inner-third-lvl-content-wrapper {
Expand Down
Loading

0 comments on commit d89b70b

Please sign in to comment.