Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

How to replicate navbar color transition on scroll?

Hi all, I’m using the bootstrap Navbar component in my app, and wanted to achieve an affect where the navbar is transparent (to show the colors and textures I have behind it in the main body of my app), but then when scrolling down the navbar becomes a solid dark color. I saw this example but unsure where/how to inject custom JS into my dash app.

Anyone know a way to transition navbar color triggered by scrolling?