Looking for help here as I cannot figure out where I am going wrong. I am trying to change my header to transition to something slightly different as I scroll down the screen. I followed this tutorial to a T and I still cannot get it to work. My code is in the Site code, not the page.
Here is what I did:
*created a small strip
*created a larger strip(size of header)
*added my strip elements
*Added an anchor
*then I dragged everything up and attach to header
*made the small strip and it’s associated elements hidden on load
*dragged the Anchor to y: 73 (the bottom of the small strip that I want to display on scroll and hide the big strip and elements in the header)
*anchor properties were edited to anchor4_onViewportLeave and anchor4_onViewportEnter
*header is frozen
my code does nothing… as evidenced here
https://brittanynsoos.wixsite.com/bffv2
Here is my code entered into the Site Code
// For full API documentation, including code examples, visit Velo API Reference - Wix.com
$w.onReady(function () {
});
export function anchor4_onViewportLeave () {
$w(“#hiddenStrip”).show();
$w(“#hiddenTitle”).show();
$w(“#hiddenMenu”).show();
$w(“#largeHeader”).hide();
$w(“#leftFlower”).hide();
$w(“#rightFlower”).hide();
$w(“#BigTextBFF”).hide();
$w(“#eliotMaine”).hide();
$w(“#siteMenuStrip”).hide();
}
export function anchor4_onViewportEnter () {
$w(“#hiddenStrip”).hide();
$w(“#hiddenTitle”).hide();
$w(“#hiddenMenu”).hide();
$w(“#largeHeader”).show();
$w(“#leftFlower”).show();
$w(“#rightFlower”).show();
$w(“#BigTextBFF”).show();
$w(“#eliotMaine”).show();
$w(“#siteMenuStrip”).show();
}