[page:Preloader] →


Implements simple rotating preloader. Check out the Verge3D Player application to see it in action.


[name]( [page:Object parameters] )

[page:Object parameters] - object with properties defining the preloader's behavior. All parameters except container are considered optional. The following are valid parameters:
[page:DOMElement container] - A container element or container element ID used by the created preloader.
[page:Color textColor] - Percentage text color.
[page:Color backgroundColor] - Background color.
[page:String imageURL] - URL of the preloader's image.
[page:Number imageRotationSpeed] - image rotation speed (degrees per second).


Simple preloader overrides [page:Preloader Preloader] methods implementing image animation and cleanup logic.