Skip to Content

Adding a Hero Video to your Homepage


Sometimes a graphic isn't enough for the hero of your homepage. This article shows you how to add a hero video to your homepage using jQuery.

Sometimes a graphic isn't enough for the hero of your homepage. Showcase your product or service on your website with a video that continuously loops. In this article, Solodev will show you how to add a hero video to your homepage using the vide jQuery plugin.

Below is the required HTML, CSS, and JavaScript.

Step 1 - hero-video.html

Add the HTML below to your web page


Step 2 - hero-video.css

Download the CSS below and include it in your web page

 hero-video.css

Step 3 - Add the includes below to your web page

In this article, Solodev showed you how to add a hero video to your homepage. Swap out the video and copy and make it your own!


Elena Roig
Contributions Editor here at Solodev. Want to be featured on the Solodev Blog? Get in touch.
Follow me on Twitter

Sign up to explore

Create an account in seconds and start building today.

Sign up for Solodev