Having issues with sorting out a transparent top bar changing to solid background on scoll (and also making it slow when it works),
The challenge is that it appears as working in Pro but not in a browser (safari or firefox)
Setup as follows:
Bar 1: container (logo element left, inline nav element right)
sticky bar on.
Bar 2 - bar contains background hero image.
CSS only used on page:
Bar 1: classes used are topbarSM and topbarSMblue
Bar 2: (CustHeroImg is hero image)
.CustHeroImg {
margin-top: 0px;
}
.topbarSM {
background-color: transparent;
border: 0;
box-shadow: none;
position: fixed;
width: 100%;
}
.topbarSMblue {
background-color: black;
transition: all 0.3s ease 0s;
}
Why does this work within the header area (like it should) bur even when cached in Safari and Chrome, there is no dark navbar -