I want to add a navbar box shadow on the first scroll. Here is an example: Example. Also want to remove the box shadow when it’s all the way to the top.
You need to add an additional element with a shadow in your navigation. In the while page scrolling animation, you change its position at 0% to the negative point on the y-axis (as long as there is no shadow), and then set the position 0 on the y-axis a few percent further. It should work As if you need more precise tips, let me know