let fadeOptions = { "duration": 250, } /** * Adds an event handler that runs when an element is displayed in the viewable part of the current window. [Read more](https://www.wix.com/corvid/reference/$w.ViewportMixin.html#onViewportEnter) * @param {$w.Event} event */ export function scrollLine1_viewportEnter(event) { // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4 // Add your code for this event here: $w('#hideyHeader').hide("fade", fadeOptions); } /** * Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window. [Read more](https://www.wix.com/corvid/reference/$w.ViewportMixin.html#onViewportLeave) * @param {$w.Event} event */ export function scrollLine1_viewportLeave(event) { // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4 // Add your code for this event here: $w('#hideyHeader').show("fade", fadeOptions); }