Search results

How to embed looping videos on your web page

by Tom Johnson on May 18, 2014
categories: technical-writing

Videos are great, but sometimes all you want to do is show a brief clip that demonstrates a certain action. For example, take a look at this article on how to make play-dough. Each step has an embedded, looping video that shows the action you need to take. There aren't any player controls on the videos, and the videos only start when you mouse over them.

Embedding looping videos is easy to do with with HTML5 video tags. See this post on Stack Overflow for some sample code.

I created a quick example with looping videos in this post. Suppose you're creating release notes about some image editing functions in WordPress. Here's how you might embed looping videos. Mouse over the images to make them play.

Cropping images

You can crop images that you have uploaded in WordPress.

Your browser does not support HTML5 video.

Rotating images

You can also rotate the videos clockwise or counterclockwise.

Your browser does not support HTML5 video.

Flipping images

You can also make quick adjustments to the videos. For example, you can flip the images horizontally or vertically.

Your browser does not support HTML5 video.

With this last video, if you move your mouse off the video, the video stops.

The only shortcoming with the method above is that the videos don't have a watermark over them to let you know they're videos rather than static images. I added a box shadow to the images, which would easily let the user learn to recognize looping videos versus static images.

There are quite a few options with the HTML5 video tag, such as whether to include controls, autoplay, loop, and more.

About Tom Johnson

Tom Johnson

I'm an API technical writer based in the Seattle area. On this blog, I write about topics related to technical writing and communication — such as software documentation, API documentation, AI, information architecture, content strategy, writing processes, plain language, tech comm careers, and more. Check out my API documentation course if you're looking for more info about documenting APIs. Or see my posts on AI and AI course section for more on the latest in AI and tech comm.

If you're a technical writer and want to keep on top of the latest trends in the tech comm, be sure to subscribe to email updates below. You can also learn more about me or contact me. Finally, note that the opinions I express on my blog are my own points of view, not that of my employer.