Striving to incorporate a color change in the navbar upon scrolling down has proven to be quite challenging. It seems like there is a conflict between the code for the navbar and the parallax effect on the video canvas placed within a div below it.
Upon further investigation, it appears that removing the parallax code allows the color change in the navbar to function correctly. This hints at a potential interference issue between the two sets of code.
Feel free to check out the fiddle of my code with the parallax effect applied. Removing the parallax segment will showcase the expected behavior of the color change in the navbar.