Accessors
note
All Module accessors are available in this class.
isHidden
Type: boolean
Returns whether the preloader is currently hidden.
This becomes true only after:
- the page is fully loaded, and
- the hiding animation (automatic or manual) is completed.
const preloader = new Preloader({
container: document.getElementById("container")
});
preloader.isHidden; // detect final hidden state