-
Notifications
You must be signed in to change notification settings - Fork 1
Splash
Josh Stovall edited this page Dec 3, 2020
·
1 revision
Create a splash screen.
See the live demo.
var options = {
background: 0x222222,
logo: "assets/logo.png",
duration: 5000
}
var splash = new XR.Splash()
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 color
logo to display
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();