+ 2
I want to add an animation effect on my menu but an error
I wanted to add an animation effect to the serial list on my menu, but it was an error if something went wrong please let me know thank you in advance https://code.sololearn.com/Ws4bJXu1Mgu6/?ref=app
1 Answer
+ 3
Try this
close.addEventListener("click",function(e){
listMenu.forEach(function(el,i,e){
el.classList.add("transhide");
e[0].animationDelay = "0.5s";
e[1].animationDelay = "1s";
e[2].animationDelay = " 1.5s";
e[3].animationDelay = "2s";
})
https://code.sololearn.com/W6y093MzTcaC/?ref=app