Skip to content

Commit

Permalink
add transition delay on mobile bottom menu
Browse files Browse the repository at this point in the history
  • Loading branch information
goldipl committed Jul 13, 2024
1 parent efa4772 commit 2495b8b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/header-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ $(document).ready(() => {
e.preventDefault();
$(this).toggleClass('open');
$('.header-2-0 .mobile-menu').addClass('active');
$('.header-2-0 .mobile-menu').addClass('transition-delay');
$('body').addClass('body-locked');
$('html').addClass('body-locked');
$('.mobile-menu-img-wrapper').removeClass('active');
Expand All @@ -214,6 +215,7 @@ $(document).ready(() => {
e.preventDefault();
$(this).toggleClass('open');
$('.header-2-0 .mobile-menu').addClass('active');
$('.header-2-0 .mobile-menu').addClass('transition-delay');
$('body').addClass('body-locked');
$('html').addClass('body-locked');
$('.mobile-menu-img-wrapper').removeClass('active');
Expand Down
3 changes: 3 additions & 0 deletions sass/common/_mobile_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ body.body-locked {
&.active {
transform: translateX(0);
}
&.transition-delay {
transition: all 0.2s ease 0.2s;
}
&-wrapper {
display: flex;
flex-direction: column;
Expand Down
3 changes: 3 additions & 0 deletions sass/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2769,6 +2769,9 @@ body.body-locked::after {
.header-2-0 .mobile-menu.active {
transform: translateX(0);
}
.header-2-0 .mobile-menu.transition-delay {
transition: all 0.2s ease 0.2s;
}
.header-2-0 .mobile-menu-wrapper {
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion sass/main.css.map

Large diffs are not rendered by default.

0 comments on commit 2495b8b

Please sign in to comment.