1
I want to implement on page 404 an mp4 video and I took the video of this website in the size 1920 x 1080 with 3.3 MB and 0:09 sec. My concern is whether this size will get too slow. This is the first time I’ve created this kind of page. Could you help me? I need to know if the video size is good and I’m doing it the right way. Below is the code:
<!DOCTYPE html>
<html>
<head>
<title>Página não Encontrada</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html{
width: 100%;
height: 100%;
font-family: sans-serif;
font-size:22px;
line-height: 1.3;
overflow: hidden;
}
.bg_video{
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1000;
background-size: cover;
}
.body{
padding:20px;
background: rgba(255,255,255,0.9);
margin: 10% auto 20px auto;
max-width: 960px;
border-radius: 10px;
}
.body h1{
font-family: Georgia, serif;
font-size:40px;
}
.body p{
margin: 1.6em 0;
}
</style>
</head>
<body>
<video autoplay loop class="bg_video">
<source src="video/fundo.mp4" type="video/mp4">
</video>
<div class="body">
OPS... PÁGINA NÃO ENCONTRADA! ( Aqui entrará o restante do texto com o mapa do site! )
</div>
</body>
</html>
How long is this video? 3MB is really heavy for this type of application.
– Sam