NavBar BG color animation

My homepage starts at the top with a background image that’s designed to be behind the Navbar, too. So the Navbar has transparent background.
However, when I start scrolling down, the Navbar should have white background, because other parts of the page (like text) are not meant to be background to the Navbar.

I tried accomplishing this with page scroll interaction but failed. I assume I should actually use animation triggered on the background image, and change the Navbar background color to white when the image starts scrolling (and change it back to transparent when the image scrolls back to the top). But I couldn’t understand how to do it.

Help, please!

Here is my public share link: //preview./preview/rollsoft?utm_medium=preview_link&utm_source=designer&utm_content=rollsoft&preview=01b2b109966c8a9eba69cdc629522e81&mode=preview
(how to access public share link)

Hey @Shlomo_Wygodny, welcome! :slight_smile:

Unfortunately your share link is not working—could you please check it and update us? Thanks!

This is the link I copied from WEBflow:

As I’m a complete newbie, I attach a picture with how I got this link:


Links require a hostname. Your shared url does not. Can you click the blue copy button then paste it here.

1 Like

You can use “scroll into view” interaction that would be set up on a div that would include everything but the hero section where you want your navbar to be transparent. Then you would set up the interaction in such a way that when the div that would include everything but the hero is in view your navbar would get that white background. Once the all-inclusive div is out of view your navbar background would become transparent again.

But I also need it when the image in the hero (top) section scrolls down.
The Navbar should be transparent only when this image is totally visible (completely scrolled up).

So I guess the interaction should somehow be triggered on this image, I just don’t know how.

Can you please rephrase? Why would my method not work?

Sorry for the delay, I tried playing with it but still it’s not perfected. The point is that at the minute the background image in the top hero section starts scrolling, I need the navbar to have white background (and to restore it to transparent once the image scrolls back to it’s top position).
I created a scroll in/out of view animation on the image and it’s almost working, however the navbar becomes transparent only when the image is completely out of view, and not the minute I start scrolling. I think you can see it in the shared project.

Any idea how to improve that?

Forget it! I did it with a page scroll animation. Easy peasy. you can close this.