Making text tooltip using mouseIn and mouseOut event

Maybe it is helpful for newbies. According to this video https://youtu.be/aayDBLTKG5c but there Classic Wix Editor. In Editor X code it also works properly.
‘vector’ - shape or image
‘container’ - with color fill, shadow which contain text tooltip
‘text’ - info text

export function vector_mouseIn(event) {
$w('#container').show();
$w('#text').show()
}
export function vector_mouseOut(event) {
   $w('#container').hide();
   $w('#text').hide();
}