Loop Button

The <ef-toggle-loop> is a custom HTML element to toggle the loop state of the video.

Basic Usage

<ef-toggle-loop>
    <button>Loop</button>
</ef-toggle-loop>

How it works

In the example above, the button element is used to define the content of the loop button.

We have onclick event listener on ef-toggle-loop element to toggle the loop state of the video (all child elements of ef-toggle-loop will be listening to this event).