Version: 5.x
vm-scrim
A darkened overlay or gradient that covers the current video to enable controls placed on it to be more visible.
#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
gradient | If this prop is defined, a dark gradient that smoothly fades out without being noticed will be used instead of a set color. This prop also sets the direction in which the dark end of the gradient should start. If the direction is set to up , the dark end of the gradient will start at the bottom of the player and fade out to the center. If the direction is set to down , the gradient will start at the top of the player and fade out to the center. | "down" ∣ "up" ∣ undefined | undefined |
#
CSS Custom PropertiesName | Description |
---|---|
--vm-scrim-bg | The background color of the scrim. |
--vm-scrim-z-index | The position in the UI z-axis stack inside the player. |