0
I want, when clicking on the pseudo-element, the menu opens, I tried several codes but none worked, the last one I tried was this :
$('#overlay-menu').after().click(function(){
var menu = $('#overlay-menu'); //Antes eu tentei usar o this, porém, sem sucesso também
if (menu.className != 'open') {
menu.className == 'open';
}
});
So I would have to create a span inside the Nav and style it like the after, right ?
– Murilo Melo
Yes I think that would be the solution.. But @Murilogambôa, take a look at the mechanics of adding/removing the class I put in. I think that would be better for you
– Miguel
is that as the menu is hidden and there is only one after being shown to open the menu overlay, I think the span would be better even, and I found very good your code :3 thanks for the clarifications
– Murilo Melo
You’re welcome @Murilogambôa, I’m glad I helped
– Miguel