55 lines
1.1 KiB
CSS
55 lines
1.1 KiB
CSS
|
|
#videoplayer {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
video {
|
|
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/polina.jpg') no-repeat;
|
|
background-size: cover;
|
|
opacity: 0.3;
|
|
-webkit-transition: 1s opacity; transition: 1s opacity;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button {
|
|
position:fixed;
|
|
top:100px;
|
|
left: 100px;
|
|
display: block;
|
|
width: 200px;
|
|
padding: .4rem;
|
|
border: none;
|
|
margin: 1rem auto;
|
|
font-size: 1.3rem;
|
|
background: rgba(255,255,255,0.23);
|
|
color: #fff;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
-webkit-transition: .3s background;
|
|
transition: .3s background;
|
|
}
|
|
#videoplayer button:hover {
|
|
background: rgba(0,0,0,0.5);
|
|
}
|
|
|
|
@media screen and (max-width: 500px) {
|
|
div{width:70%;}
|
|
}
|
|
@media all and (max-device-width: 800px) {
|
|
body { background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/4273/polina.jpg") #000 no-repeat center center fixed; background-size: cover; }
|
|
#bgvid, #videoplayer button { display: none; }
|
|
div{width:70%;}
|
|
}
|
|
.stopfade { opacity: 1;
|
|
}
|