토글 및 메뉴 나오게 기능 수정

This commit is contained in:
haesung lee
2024-03-08 10:51:04 +09:00
parent 6ef87a4aa9
commit 0e6fc6e43d
2 changed files with 20 additions and 18 deletions

View File

@@ -66,6 +66,7 @@
$(document).ready(function(){
// 로그인 메뉴 활성화
let check_state = 0;
$(".login__section .user__nav__open").click(function(){
if(check_state != 0){
$(this).find("span").attr("uk-icon","icon: triangle-down");
@@ -78,18 +79,18 @@
});
// 메뉴 토글
{#$(".menu__open").click(#}
{# $(".menu__wrap").hide()#}
{##}
{# $('.menu__wrap').toggle('slide', {#}
{# direction: 'right'#}
{# }, 400)#}
{#);#}
{##}
{#$('.menu__close').click(#}
{# $('.menu__wrap').toggle('slide', {#}
{# direction: 'right'#}
{# }, 400)#}
{#);#}
});
$(".menu__open").click(function() {
$(".menu__wrap").show();
$(".nav__div").animate({"right":"-68px"}, 300, function(){
$(".menu__wrap").animate({"right":"0"}, 700);
});
});
$('.menu__close').click(function() {
$(".menu__wrap").animate({"right":"-440px"}, 700, function(){
$(".menu__wrap").hide();
$(".nav__div").animate({"right":"0"}, 300);
});
});
})
</script>