Make an element disappear at certain window sizes

@bwprado
Just a little addon to Brunos suggestion.

At this code-part you perhaps should use a console.log

let windowSizeInfo = await wixWindow.getBoundingRect();

…like this…

let windowSizeInfo = await wixWindow.getBoundingRect(); console.log(windowSizeInfo);

Why? → Because Bruno surely did the same to get → .window.width
which you need in the next coding step. Else you would not know how to get the right value.

let windowWidth = windowSizeInfo.window.width

…or you take a look into the VELO-API…

Ok, Bruno just looked into the API-DOCs :wink: