<!-- Меню открывается по клику -->
<script>
$("document").ready(function() {
/* #rec130781742 — id Зеро блока (меню 2-го уровня, который будет всплывать) */
var menuBlockID = "#rec130781742";
var isAlready = false;
var menuArtboard = $(menuBlockID).find(".t396__artboard");
$("[href='#menu']").click(function(e) {
e.preventDefault();
$(menuArtboard).toggleClass("open");
if(!isAlready) {
$(menuArtboard).mouseleave(function(e) {
e.preventDefault();
$(menuArtboard).toggleClass("open");
isAlready = true;
});
}
});
});
</script>
<style>
/* #rec130781630 — id Зеро блока (меню 1-го уровня, основной) */
#rec130781630 {
width: 100%;
position: fixed;
top: 0;
z-index: 998;
}
/* #rec130781742 — id Зеро блока (меню 2-го уровня, который будет всплывать) */
#rec130781742 .t396__artboard {
z-index: 997;
position: fixed;
margin: auto;
top: 130px; /* высота Зеро блока (меню 1-го уровня, основной) */
left: 0;
transition: all .4s ease;
pointer-events: none;
transform: translateY(-600px); /* сумма высот Зеро блоков, которые играют роль меню (1-го и 2-го уровня) */
justify-content: space-around;
box-shadow: 0px 9px 9px 0px rgba(0, 0, 0, .09);
}
.open {
pointer-events: all !important;
transform: translateY(0px) !important;
}
</style>