For those using iframe code to embed Youtube or Vimeo , you need to approach in a different way. I used the onOpen and onClosed events to hide and show the iframe. Here is an example:
$('.selector').colorbox({ inline: true, href: '.step.'+target, rel: 'steps', onOpen: function(){ $('iframe').css('visibility','hidden'); }, onClosed: function(){ $('iframe').css('visibility','visible'); }, loop: false, opacity: 0.5 });
I assume this also works if you want to apply it to the embed or object tag as a quick fix.
Jorge pedret
source share