Set video on my website home page

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5073
    Shalabh
    Participant

    I would like to run a product video on the entire page. Simply means it should be feel as the background of my home page. Can I do this?

    #5219

    Hello,

    Full-screen playback is not currently part of the HTML5 specification. However most of the popular browser support full-screen playback.

    I would suggest you to use gif version if video is small.

    #5221
    Pavan
    Member

    I think that you can show a video as background with the help of some css and styling such as:

    <body>
    <div style="background:red;height:100px;width:100px;position:absolute"">
    </div>
    <video width="100%" height="100%" style="position:absolute;
    z-index:-1" controls autoplay>
      <source src="movie.mp4" type="video/mp4">
    </video>
    </body>
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.