.submenu {
width: 100%;
@extend %list;
max-height: 0;
padding-left: 22px;
padding-right: 46px;
overflow-y: scroll;
transform: scaleY(0);
transition: transform 250ms linear;
transform-origin: top center;
&.submenu-open {
transform: scaleY(1);
transform-origin: top center;
max-height: 300px;
}
}
&.submenu-closed{
transform: scaleY(0);
max-height: 0;
}