Add Image in Front of a Video

We include videos on splash page or landing page of some marketing websites to attract customers or explain the features of their product.

Most of the time, clients want an image to replace the fist frame of a YouTube video. To fit the video with the design of the website.

The code below will help you add an image in front of a video and hide it OnClick.

Make sure that the image and the video has exactly the same dimension. And the video is set to auto play.