Use fadeTo instead of fadeIn/fadeOut to avoid having display: none on large video which causes issues when Temasys plugin is used.

This commit is contained in:
paweldomas 2015-08-19 18:21:08 +02:00
parent ae96b9f365
commit 0fe4999beb
1 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ function changeVideo(isVisible) {
if (isVisible) {
LargeVideo.VideoLayout.largeVideoUpdated(currentSmallVideo);
$('#largeVideoWrapper').fadeIn(300);
$('#largeVideoWrapper').fadeTo(300, 1);
}
}
@ -402,7 +402,7 @@ var LargeVideo = {
// If for any reason large video was hidden before calling fadeOut
// changeVideo will never be called, so we call show() in chain just
// to be sure
$('#largeVideoWrapper').show().fadeOut(300,
$('#largeVideoWrapper').show().fadeTo(300, 0,
changeVideo.bind($('#largeVideo'), this.isLargeVideoVisible()));
} else {
if (currentSmallVideo) {