+ 1

Navigation lists do not show when side bar is open

Does someone know why my navigation lists do not show when the sidebar is open? They are there but just not visible. In the CSS file, .navigation li sets the opacity to zero, but the Javascript function is supposed to change it from 0 to 1. The problem may be on line 13 of the Javascript file: '${index / 7 + 2}'. It's being detected as a string but shouldn't be, and I'm not really sure how to fix it. Appreciate any help. https://code.sololearn.com/W53zhoocoOAX

26th Jun 2022, 3:17 PM
David
David - avatar
2 RĂ©ponses
+ 5
David I managed to fix your code. you were using string literals so, with string literals you should use " ` " 👈 sign not single quote ' 👈 loook carefully at line 17👇👇👇👇 in my below version https://code.sololearn.com/WhsAefUUCcoD/?ref=app
26th Jun 2022, 3:39 PM
NonStop CODING
NonStop CODING - avatar
+ 3
NonStop CODING THANK YOU!! ive been working on this for too long and could not figure this out. Really appreciate it!
26th Jun 2022, 4:00 PM
David
David - avatar