Skip to content

Commit

Permalink
Added player fullscreen transition
Browse files Browse the repository at this point in the history
  • Loading branch information
explodingcamera committed May 1, 2016
1 parent 6b9f27c commit f860df7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
39 changes: 16 additions & 23 deletions webserver/public/lib/css/video.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
height: calc(100% - 41px);
}
.playback {
transition: all .4s cubic-bezier(0.45, 0.05, 0.55, 0.95);
position:absolute;
margin: 0 auto;
width: 854px;
Expand All @@ -25,8 +26,8 @@
border:1px solid #444A59;
}
.video {
width:854px;
height:480px;
width: 100%;
height: calc(100% - 41px);
}
.navbar {
opacity:0;
Expand Down Expand Up @@ -68,10 +69,6 @@
.playback:hover .navbar {
opacity: 1;
}
.video.fullscreen {
width: 100%;
height: calc(100% - 41px);
}
.playback.fullscreen {
width: calc(100% - 1px);
height: 100%;
Expand Down Expand Up @@ -263,29 +260,25 @@
display: none;
}
@media (max-width: 1365px){
.playback {
.playback {
width: 640px;
height: 401px;
margin-top: calc(-401px / 2);
margin-left: calc(-640px / 2);
}
.video {
width:640px;
height:360px;
}
}
}
@media (max-width: 1100px) {
#app-left {
z-index: 10;
width: 100%;
}
.btn-fullscreen {
display: none;
position: absolute;
}
#app-left {
z-index: 10;
width: 100%;
}
.btn-fullscreen {
display: none;
position: absolute;
}
}
@media (max-width: 799px) {
#app-left {
display:none;
}
#app-left {
display:none;
}
}
1 change: 0 additions & 1 deletion webserver/public/lib/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4384,7 +4384,6 @@
},
fullscreen: function() {
$('.playback').toggleClass('fullscreen');
$('.video').toggleClass('fullscreen');
if (($('.btn-fullscreen > div').hasClass('mdi-fullscreen'))){
$('.btn-fullscreen > div').removeClass('mdi-fullscreen').addClass('mdi-fullscreen-exit');
//$(".playback").draggable({disabled:true}).resizable({disabled:true}).attr('style', '');
Expand Down

0 comments on commit f860df7

Please sign in to comment.