Hello Everyone,
I almost made my own custom header, but I had one problem in the end.
In the video you can see how the active page in the menu remains visible for a while after my second header appears and vice versa.
I tried to find a solution on the forum, but I didn’t succeed.
Please if anyone can help me with this. I don’t think this has happened to me before.
Here is the code I use:
let slideOptions = {
“direction” : “top” ,
“duration” : 400 ,
}
let floatOptions = {
“duration” : 400 ,
“delay” : 0 ,
“direction” : “bottom”
}
export function anchorheader_viewportEnter_1 ( event ) {
$w ( “#topStrip” ). hide ();
$w ( “#bottomStrip” ). show ( “float” , floatOptions );
}
export function anchorheader_viewportLeave_1 ( event ) {
$w ( “#topStrip” ). show ( “slide” , slideOptions );
$w ( “#bottomStrip” ). hide ( “float” , floatOptions );
}