+ 1

Navigation lists do not show when side bar opens

Does someone know why my navigation lists do not show when the sidebar is open? They are there but just not visible. https://code.sololearn.com/W53zhoocoOAX Thank you

23rd Jun 2022, 11:40 PM
David
David - avatar
4 Respuestas
+ 2
Don't call the nav function immediately. set the function to run onload onload = () => { ... }
24th Jun 2022, 2:48 AM
zexu knub
zexu knub - avatar
+ 2
Please check 79lines in your css code. .navigation li { opacity: 0; } You set value of opacity equal to 0. Thus the element is fully transparent (that is, invisible). More about in https://developer.mozilla.org/en-US/docs/Web/CSS/opacity To solve this issue, you need to set value equal to 1 or remove this code.
24th Jun 2022, 7:07 AM
Oleh Davydenko
Oleh Davydenko - avatar
0
Thank you zexu knub. Ill change it.
24th Jun 2022, 4:44 AM
David
David - avatar
0
Oleh Davydenko Thank you for answering. Your right but that will messup the js function. when the js function navSlide runs, it should change the keyframes navLinkFade opacity from 0 to 1 making it visable. So im thinking the bug js somewhere in the js file.
24th Jun 2022, 2:31 PM
David
David - avatar