Version: 5.x
vm-loading-screen
The view that is displayed while the player is booting or media is loading. By default there
are animated dots that are shown below the <slot />
to indicate to the user content is being
loaded. The default <slot />
is your opportunity to brand the player with your logo.
#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
hideDots | Whether the loading dots are hidden or not. | boolean | false |
#
SlotsSlot | Description |
---|---|
Used to pass in any content to be shown above the animated dots while the player is booting or media is loading. Use this as an opportunity to brand your player, similar to how Netflix shows their logo when content is loading. |
#
CSS Custom PropertiesName | Description |
---|---|
--vm-loading-screen-dot-color | The color of the animated loading dot. |
--vm-loading-screen-dot-size | The size (wxh) of the dot in pixels. |
--vm-loading-screen-pulse-duration | The length of the pulse animation to complete one cycle. |
--vm-loading-screen-z-index | The position in the UI z-axis stack inside the player. |