trying to add a class to a tag using the toggle method () but nothing happens | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

trying to add a class to a tag using the toggle method () but nothing happens

I tried adding a class using the toggle method to the <li> tag that contains class = menuList but nothing happens even though there should be an animation that occurs. can anyone help me to explain why this happened and how to solve it? Thank you in advance. https://code.sololearn.com/WR06bOayfCkq/?ref=app

19th Dec 2018, 10:54 PM
Hafizd Jubaidir
Hafizd Jubaidir - avatar
4 ответов
0
maybe a conflict has occurred with the classes what you want to do with this class, try separating that class in css alone
19th Dec 2018, 11:04 PM
Matheus Batista
Matheus Batista - avatar
0
Matheus Batista can give me for example I don't understand
19th Dec 2018, 11:09 PM
Hafizd Jubaidir
Hafizd Jubaidir - avatar
0
so I noticed the MenuList is executing the same thing as the container being that I did not look at the whole code is just a guess but I still do not understand what you want to add in that class
19th Dec 2018, 11:13 PM
Matheus Batista
Matheus Batista - avatar
0
Matheus Batista I want to add animation to the menu list by adding the Down menu class which contains an animation
19th Dec 2018, 11:15 PM
Hafizd Jubaidir
Hafizd Jubaidir - avatar