I'm building a website that has a floating vimeo iframe in the center. By default, the vimeo container is set to "display:none;". Once the play button is clicked, I use jQuery to fade the iframe in.
It works in all browsers except for Firefox. I'm getting this error:
s.getComputedStyle(...) is null
Here's the code I'm using to fade in the div that contains the iframe:
$('a.playbutton').click(function(){
$(this).hide();
$('#cover-content').hide();
$('.vimeo-container').css("display","table").fadeIn(animSpeed);
player.api('play');
});
I've tried using "display:block" as well as "display:table" and neither of them are working in Firefox.
Has anyone else experienced this issue, or know what's causing it?