Pause Videos

Pause & play videos on button click or through prefers reduced motion setting. State will be saved across pages through local storage.

Add to before </body> tag in page or project settings

Apply the required attributes

Required Elements

Custom element with a button tag

Will get a combo class of is-paused when paused

Name

data-video-pause

Value

trigger

Optional settings for this element

Name

Value

Name

Value

Name

Value

Name

Value

Name

Value

Optional Elements

Video or parent of video to exclude

This video will not be played or paused

Name

data-exclude-video

Value

Optional settings for this element

Name

Value

Name

Value

Name

Value

Name

Value

Name

Value

Optional Settings

No items found.
No items found.