Home » Jquery » javascript – I need to implement when sidebar minimize when I hovering on li items it should be expand

javascript – I need to implement when sidebar minimize when I hovering on li items it should be expand

Posted by: admin February 22, 2020 Leave a comment

Questions:
$(window).ready(i), $(window).on("resize", i), $(".sidebartoggler").on("click", function() {
    $("body").hasClass("mini-sidebar") ? ($("body").trigger("resize"),
        $(".scroll-sidebar, .slimScrollDiv").css("overflow", "shown").parent().css("overflow", "visible"),
        $("body").removeClass("mini-sidebar"), $(".navbar-brand span").show()) : ($("body").trigger("resize"),
        $(".scroll-sidebar, .slimScrollDiv").css("overflow-x", "visible").parent().css("overflow", "visible"),
        $("body").addClass("mini-sidebar"), $(".navbar-brand span").hide())
})
How to&Answer: