Skip to content
Josh Stovall edited this page Dec 3, 2020 · 1 revision

Splash()

Create a splash screen.

See the live demo.

var options = {
   background: 0x222222,
   logo: "assets/logo.png",
   duration: 5000
}
var splash = new XR.Splash()

Parameters

Name Type Default Description
logo file logo to display
background color black background color
text string text to display
duration int length in milliseconds

background

background color

logo

logo to display

duration

length in milliseconds

If not duration is provided, it will last until you call splash.hide()

// create a splash screen
var splash = new XR.Splash();

// close the splash screen
splash.hide();
Clone this wiki locally