Error: The element selector function (usually $w) cannot be


I’m new to Wix Code, and coding in general, so apologies if this is a stupid question but I have tried to create a section that appears on hover. I have followed the Wix tutorial to the word but receive the error message “Error: The element selector function (usually $w) cannot be used before the page is ready”. Being new to Code, I’m unaware what this is actually asking of me, can anybody help please? Screenshots attached.

Many thanks,

Screenshot of code…

Hey Andy,

Looks like you misplaced the code by a little bit. It should look like this:

export function iconemail_mouseIn(event, $w) {

export function iconemail_mouseOut(event, $w) {