Can we change the color of the navbar on a scroll to a linear gradient and not to a background with a single color?

Hello !

Here is my request : Currently my navbar is transparent and I would like, when we scroll to the first section, to change the color in a linear gradient (from left to right: light blue to dark blue for example). I know that it is possible to change the background of the navbar to a single color, but is it possible to do it using a gradient?

Thank you in advance ! :slight_smile:

Yes, you can change the color.

Thank you for your answer. Actually, I donโ€™t want it to change to one color, which is already the case on some pages. I would like the navbar on my home page to change from transparent to a linear gradient of two colorsโ€ฆ

Hello to all! Does anyone have a solution to this problem?

Thanks in advance :slight_smile: