yo(selector).isVisible()

Return true if the selector isVisible.

If the selector is hidden or does not exists returns false;

If selector returns more than one, returns true for the first occurrence

if (yo('#myid').isVisible()) {
    console.log('Visible');
};

Go to index