$(".sidebar").is(':visible')
$(".sidebar").toggle("slide", { direction: "right" }); if ($(".sidebar").is(':visible') == true) { console.log("visible") }