Mordoc

Clips

Add short, self-hosted demo clips with a click-to-play toggle.

1 MIN READ

A clip is a short, muted, looping demo video. Mordoc recommends this way to show a UI interaction instead of an animated GIF.

A GIF autoplays with no way to pause it, which is both distracting and an accessibility problem. A clip renders paused on its thumbnail and only plays once a reader clicks it, so it stays under the reader's control.

Add a clip

Markdown
{% clip 
  src="/clips/sample-clip.mp4" 
  thumbnail="/images/content-images/clip-thumbnail.png" 
  title="Sample clip" 
  alt="Sample clip" 
/%}

How it renders

Sample clip

Put the video file in public/, then reference its path the same way you would an image. See Images and Files if you haven't added an asset before.

Clip attributes

AttributeDescriptionValuesRequired
srcThe video file itselfVideo pathRequired
thumbnailShown paused before the reader clicks playImage pathOptional
titleA caption shown below the clipAny textOptional
altAccessible label for the play/pause toggle buttonAny textOptional

Keep clips short and silent

Clips are for short, decorative demo loops, not a narrated walkthrough. Mordoc always mutes them.

For a longer audible video, use a video embed instead, linking out to a video already hosted on YouTube, Vimeo, or Loom rather than a file you host yourself.

Next step