Length of the video is great but I gotta say you need to do split screens to make it look more presentable and easier to follow for people that have no idea about coding yet. Since mostly the newcomers will try to find a solution on these topics. Thanks for your time
Hi....Thanks for this tutorial...its awesome...I have one query...how to change nav items color at the same time changing the background color of navbar....for example I want nav Item color to be black and navbar background color to be white on scroll
You can just add another class to the nav item, just like how he did for the navbar. For example the code at 8:48, add another const in line 2 that references all the nav items. Then below line 5, add a for loop to loop through all the nav items to add the class to it.
You could wrap the .header-scrolled in a @media query in the css file, or you can check the width of the screen in the javascript file, and only run it if it's larger than a certain amount (usually 480px for mobile)