Currently utilizing the oceanwp theme, I'm aiming to create a topbar that vanishes while scrolling and have the menu smoothly transition to the topbar location with some opacity. I attempted the following code snippet:
#site-header {
position: fixed;
left: auto;
width: 100%;
z-index: 2000;
opacity: 0.9;
}
Unfortunately, this solution did not work as expected. The menu remains stuck in its original position, causing a gap in the topbar area. Does anyone have a suggestion on how to rectify this issue?