yo(selector).hide()

Hide the element. If it is not visible does nothing.

// Show the element
yo('.myclass').hide();

yo(selector).hide(callback)

The callback function will fired once only after the “hide” action is ended.

yo('.myclass'.hide(function () {
    // do something
}))

Go to index