Preloader

SimplePreloader

Implements simple yet highly customizable preloader. Check out the Verge3D's standard app templates to see it in action.

Verge3D simple preloader

Constructor

SimplePreloader(parameters : Object)

parameters — object with properties defining the preloader's behavior.

The following is the only valid parameter.

container — an element ID or an element used to store the created preloader.

Properties

.bar : HTMLElement

A <div> element used to display the preloader's bar.

. : HTMLElement

A <div> element used to display the preloader's logo.

.logoCont : HTMLElement

A <div> element used for the preloader's logo container.

.background : HTMLElement

A <div> element used for the preloader's background.

.container : HTMLElement

A container element passed to the constructor.

.clock : Clock

A clock instance. Used internally.

Methods

Simple preloader overrides Preloader methods implementing image animation and cleanup logic.

Customization

Check out the following page for instructions on how to customize preloaders with CSS.

Source

For more info on how to obtain the source code of this module see this page.