> For the complete documentation index, see [llms.txt](https://docs.dbnetsoft.com/dbnetsoft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements.md).

# Custom elements

Clocks, stopwatches, lists, video, NDI, masks, flags and slideshows for HTML layouts.

`layout.js` brings custom elements for what Screens.Controls does in XAML layouts. Use them like any HTML element: CSS places, sizes and animates them. Give them an `id` to control them from a client.

Their properties and methods have the ScreensPro names, so the packets are the same as for the XAML elements: SetProperty `Text` / `TargetTime` / `Items`, CallMethod `Start` / `Stop` / `Play`. Attributes are written in lower case with dashes (`items-visible`), properties in ScreensPro's spelling (`ItemsVisible`). Every attribute can also be bound with `data-set-<name>`.

| Element                                                                                                                                                     | ScreensPro / XAML                       | For                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | ---------------------------------------------------------- |
| [`<sp-clock>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/clocks-and-timers.md#sp-clock)            | ClockElement                            | Time of day                                                |
| [`<sp-stopwatch>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/clocks-and-timers.md#sp-stopwatch)    | StopwatchElement                        | Running times, countdowns                                  |
| [`<sp-targettime>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/clocks-and-timers.md#sp-targettime)  | TargetTimeElement                       | Time to / since a point in time                            |
| [`<sp-items>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/lists.md#sp-items)                        | ItemsElement, ListElement, ItemsControl | Lists with pages and row animations                        |
| [`<sp-video>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/video-and-live.md#sp-video)               | VideoElement(Ffmpeg)                    | Video clips, ProRes 4444 with alpha                        |
| [`<sp-ndi>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/video-and-live.md#sp-ndi)                   | NdiElement                              | An NDI source in the layout                                |
| [`<sp-stream>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/video-and-live.md#sp-stream)             |                                         | A network stream (SRT, RTMP, RTSP, UDP, HLS) in the layout |
| [`<sp-mask>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/masks.md#sp-mask)                          | Track matte, G-Studio's Mask effect     | Showing content through an animated mask clip              |
| [`<sp-wave>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/flags-and-slideshows.md#sp-wave)           | FlagWaveEffect                          | A waving flag                                              |
| [`<sp-slideshow>`](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/flags-and-slideshows.md#sp-slideshow) | SlideshowElement                        | The images of a folder in turn                             |

{% hint style="info" %}
**In ScreensPro Cloud** every element works, played by the browser - except these, which need ScreensPro Native:

* `<sp-ndi>` and `<sp-stream>`: browsers can't receive NDI or network streams.
* `<sp-video>` plays MP4 (H.264) and WebM (VP9, also with transparency) - not ProRes, HAP or most `.mov` files.
* `<sp-mask>` with a mask clip from a video; masks from image sequences and sprite sheets work.
  {% endhint %}

## In this section

* [Clocks and timers](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/clocks-and-timers.md) - `<sp-clock>`, `<sp-stopwatch>`, `<sp-targettime>` and the time formats
* [Lists and tickers](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/lists.md) - `<sp-items>`, `<sp-ticker>`
* [Video, NDI and streams](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/video-and-live.md) - `<sp-video>`, `<sp-ndi>`, `<sp-stream>`
* [Masks](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/masks.md) - `<sp-mask>` and `data-mask`
* [Flags and slideshows](https://docs.dbnetsoft.com/dbnetsoft/screenspro/screenspro-native-and-cloud/common/custom-elements/flags-and-slideshows.md) - `<sp-wave>`, `<sp-slideshow>`
