# PlayerTrigger

> **PlayerTrigger** = readonly \[`on`: `"hover"` | `"click"` | `"inView"`, `selector`: `string`, `state`: `string`, `back`: `0` | `1`]

One trigger: `[on, selector, state, back]`.

- `on`: `hover` (a pointer over the element, or keyboard focus in it; on a touch screen a tap turns it on and a tap
  outside off), `click` (a click, or Enter / Space on the focused element; the next one releases it while the state
  can run back, else plays it again), `inView` (a quarter of the element in the viewport; leaving it releases it).
- `selector`: the element, one class (`.name`) inside the root, or the root itself.
- `state`: the state it plays.
- `back`: `1` when its release runs the state back to what it interrupted; `0` when a release does nothing.
